May 3, 2015 Hatem Ben Yacoub

SSHFS Mount remote directories locally with SSH

Sometimes it’s annoying to work from your Desktop on remote files using command line only, while you can access them easily using GUI. The problem occur if you are editing text files that have non standard encoding, and in this case using command line might broke your encoding or not allow you to see text correctly. So instead of finding a way to display it in command line, I prefer using other editors.

So to mount your remote directory using SSH you will need to have sshfs, I am using here Ubuntu trusty 14.04.2 :

Load the kernel module :

Then set the permissions required, replace “username” with your current user name :

Then finally you can mount it locally :

You might see your remote directory mounted below devices :


Now when you finish you can unmount it using :

The end.

Tagged: ,

About the Author

Hatem Ben Yacoub Energy Engineer, Entrepreneur, ICT & eGov Consultant with over 15 years experience. Independent Open Data expert.

(HBY) Consultancy