Skip to content

Instantly share code, notes, and snippets.

@farhany
Created February 20, 2018 22:08
Show Gist options
  • Select an option

  • Save farhany/eea2d612b56aa672dce11e2ffe399666 to your computer and use it in GitHub Desktop.

Select an option

Save farhany/eea2d612b56aa672dce11e2ffe399666 to your computer and use it in GitHub Desktop.
fuse on Mac over ssh
brew cask install osxfuse
brew install sshfs
sudo sshfs -o allow_other,defer_permissions,IdentityFile=~/.ssh/id_rsa user@host:/remotefolder/ /localfolder
mount
umount user@host:/remotefolder/
pgrep -lf sshfs
kill -9 <pid_of_sshfs_process>
sudo umount -f <mounted_dir>
# Source: https://susanqq.github.io/jekyll/pixyll/2017/09/05/remotefiles/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment