SSHFS
Jump to navigation
Jump to search
SSHFS (SSH Filesystem) is a filesystem client based on FUSE for mounting remote directories over an SSH connection. SSHFS is using the SFTP protocol, which is a subsystem of SSH and it is enabled by default on most SSH servers.
When compared to other network file system protocols such as NFS and Samba the advantage of SSHFS is that it does not require any additional configuration on the server side.
To use SSHFS you only need SSH access to the remote server via SFTP, all transmitted data between the server and the client must be encrypted and decrypted. This results with a slightly degraded performance compared to NFS, and higher CPU usage on the client and server.
Use SSHFS
Install sshfs on Ubuntu,
sudo apt install sshfs
To mount a remote directory the SSH user needs to be able to access it. The SSHFS mount command takes the following form:
sshfs [user@]host:[remote_directory] /mountpoint [options]
To unmount
fusermount -u /mountpoint
for Windows and Mac, this pages has more details