Using SSHFS on Ubuntu 14.04

SSHFS is a useful way of mounting a folder of a remote Linux/Unix server over SSH on your local machine.

To start you will need to install sshfs

sudo apt-get install sshfs

You need to add your user account to the fuse group. After doing this you will need to logout and the login again.

sudo gpasswd -a youruser fuse

Now create a folder to be used for mounting the remote folder

 mkdir ~/sshfs

Now you can mount the remote server’s folder in the newly created sshfs folder

sshfs -o idmap=user ~/sshfs/

You can now read and write from your local ~/sshfs folder the home drive on your remote server.

When you have finished, you can dismount using the following command

fusermount -u ~/sshfs