Yesterday I shared about using SFTP onto a remote server and I stated that one of the weaknesses of SFTP is not able to move multiple files at the same time. Therefore, SSHFS solved this problem.
SSHFS is an open source project on github, where you can mount a remote file system through SFTP.
There is a good guide written by digital ocean on installation on windows.
You can check out the github release of the library.
I just use brew install sshfs to install it.
The full guide is on github
sudo chown -R $(whoami):staff /usr/local/Caskroom
brew cask install osxfuse
sudo reboot
brew install sshfs
The command is quite simple.
sshfs [user@]hostname:[directory] mountpoint
where
user@hostname is the way you sign in with ssh,directory is the directory you want to mount from the servermountpoint is the directory you want to mount on your local machinesample command sshfs root@IP_ADDRESS:/root ./server2
Once it is mounted, it looks like this on Mac.
When you click into it, it takes a while to load all the files, then it shows out how your files looks like on the remote server.
Done!
SSHFS also used SFTP, but it makes it easier and faster to use than FTP. Overall, I find it really useful to quickly move files into it, but to do normal operations like file editing, I still prefer using SSH with Vim (as it is faster).