SSHFS: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(Created page with "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,...")
 
No edit summary
 
Line 1: Line 1:
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.
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.




Line 5: Line 6:


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.
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 ==
<syntaxhighlight lang="bash">
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
</syntaxhighlight>
for Windows and Mac, [https://linuxize.com/post/how-to-use-sshfs-to-mount-remote-directories-over-ssh/ this pages] has more details


== References ==
== References ==

Latest revision as of 10:31, 2 January 2024

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

References