Gangmax Blog

自由之思想,独立之精神

Mount Remote Directory via SSH to Local on Mac

From here.

First, Make sure you have Homebrew installed.

1
# Install FUSE.
2
# Restarting was required after I executed the following command.
3
brew cask install osxfuse
4
# Install sshfs.
5
brew install sshfs
6
# Mount the target remote directory to local.
7
sudo sshfs -o allow_other,defer_permissions,IdentityFile=~/.ssh/id_rsa user@host:/data/ /Users/user/data

Comments