Gangmax Blog

自由之思想,独立之精神

Mount Remote Directory via SSH to Local on Mac

From here.

First, Make sure you have Homebrew installed.

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

Comments