SSHFS - Mount remote directories over SSH

SSHFS is a file system client based on the SSH File Transfer Protocol (SFTP) that allows you to mount a remote filesystem using SFTP, so that you can access files on that filesystem as if they were local files on your computer.


SSHFS can be useful for a variety of reasons, such as transferring files between computers or accessing files on a remote server without the need for a separate file transfer program. To use SSHFS, you need to have SSH access to the remote server and have the SSHFS client installed on your local computer.

A basic example of usage is the following:

1$ sudo mkdir /mnt/<local directory>
2$ sudo sshfs [-o <options>] <remote user>@<remote host>:/<path to remote directory> /mnt/<local directory>/

After the commands, the local directory folder is mapped on the remote directory, and common operations can be done on the files.


References