Mount remote file system over SSH

From time to time it is handy to be able to treat a remote file system as though it were mounted locally. This is particularly useful if you have a remote server and the primary access to this server is via SSH.

Step 1 – Install SSHFS

On Linux (Ubuntu or Debian)

Execute the following command in your terminal:

sudo apt-get install sshfs

On Windows

Simply download the Windows software from the following address:

https://win-sshfs.googlecode.com/files/win-sshfs-0.0.1.5-setup.exe

You might be prompted to install the .NET framework should this not be installed on your computer already.

On Mac

http://osxfuse.github.io/

Step 2 – Mount the remote file system

Create a local directory to which the remote file system will be mounted:

sudo mkdir ~/remoteFileSystem

Mount the remote file system with the following command:

sudo sshfs root@REMOTE-SERVER-IP-ADDRESS-HERE:/ ~/remoteFileSystem