Managing remote source via IDE : SSHFS

Dilshani Subasinghe
Feb 3, 2017 · 2 min read
Image for post
Image for post

While you are working with remote source, it may find yourself uploading a script repeatedly to your virtual server to test. In such kind of scenario, that will be bit hassle.

So here is the simple solution. You can mount remote location with in your local machine and just do the development. SSHFS will do that for you :)

  1. Install sshfs in your local machine.


sudo apt-get install sshfs

Mac : Refer

Windows: Get latest win-sshfs package from

2. Make a directory in local which will going to mount with remote

mkdir /home/user/mount

3. Mount remote location

sshfs -o (permission options) user@<ip>:/remote_location local_folder

sshfs -o allow_other,default_permissions /home/user/mount

If you are access (ssh) remote location via public key, then use following command.

sshfs -o allow_other,default_permissions,IdentityFile=~/.ssh/id_rsa /home/user/mount

You are done with mounting ! :)

4. Open local folder with your IDE and make changes as you want. sshfs will make them remotely visible.

Note: When you restart your local machine, you have to remount remote location using above command in 3.

If you wanna add permanent mount, you can follow commands.

sudo vim /etc/fstab

Then go to the bottom of the file and add the following entry /home/user/mount

Now it will be a permanent mounted location even though you reboot remote/local instances.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store