How to mount remote directory using SSHFS

Samba (SMB) and NFS can be too complicated to mount directories between computers on a home network. If both the remote and local computers are running Linux then an easier method is to use SSHFS.

Install it:

$ sudo apt install sshfs

Create a local directory where you want to mount the remote directory:

$ mkdir remote-on-local

Mount your remote directory using this command:

$ sshfs myremotelogin@myremotecomputerip:/myremotedir remote-on-local

Now you can browse the directory both from shell or any GUI file explorer. All normal file operations works seamlessly, including deletion.

To unmount the remote directory:

$ fusermount -u remote-on-local

Tried with: SSHFS 2.5 and Ubuntu 14.04


One thought on “How to mount remote directory using SSHFS”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s