Mount remote directory using SSHFS

GNU/Linux
SSHFS (Secure SHell FileSystem) is a file system for GNU/Linux, BSD and other UNIX like OS that allows you to mount a remote directory in userspace (filesystem userspace) making use of FUSE and ssh. Once you mounted the remote directory you can do any operation over it as if it were a local DIR.

Install sshfs

Debian/Ubuntu

$ sudo apt-get install sshfs

CentOS/RHEL
Enable EPEL repo

# yum install fuse-sshfs

Synopsis

$ sshfs [usuario@]host:[dir] access-point [opciones]

access-point = DIR where you will mount the remote DIR

Example

$ sshfs sedlav@flossblog.com:/var/www/flossblog flossblog

Further reading

– man sshfs




Leave a Comment

Your email address will not be published. Required fields are marked *