Installation
Mount a remote folder from a linux server to Mac requires two tools:
- osxfuse
- sshfs
To install osxfuse, use: brew cask install osxfuse
.
To install sshfs, use: brew install sshfs
.
Usage
Firstly, prepare a local empty folder.
Secondly, run the following command:
sshfs <username>@<server>:<remote_folder> <local_folder>
and type password if necessary.
For example, mount folder /home/data of user1 on s1.com to local folder lc1, we use:
sshfs user1@s1.com:/home/data lc1
Then you can see the local folder lc1 changed its appearance to something like:
You can now see and use the remote folder data inside lc1.
After using, just right-click the folder lc1 in Finder, and click eject.