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

The tutorials here on LibreByte are provided under a free software licence. if you like my work you should consider:
Buy a Hosting/VPS or Dedicated Server at MCKHost

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.