Skip to content

Instantly share code, notes, and snippets.

@ps
Last active August 29, 2015 13:59
Show Gist options
  • Save ps/10908532 to your computer and use it in GitHub Desktop.
Save ps/10908532 to your computer and use it in GitHub Desktop.
Mounting Remove Drives with SSHFS
So there are times when you need to connect to a remote server and do some sort of work on the files.
One alternative is to use an FTP client such as FileZilla and constantly upload to view changes.
Scratch that, just use SSHFS! It mounts the remote drive/directory on your local machine and you can
work/save files and the changes will be automatically uploaded.
First install sshfs, on Ubuntu: sudo apt-get install sshfs
In order to mount a drive use your usual ssh account and specify a directory on which you would like the mount
to occur like so:
sshfs [email protected]:/path/to/folder/ /path/to/local/mount/point/
You can view the mount using df -h
Once you are done it is just safer to unmount with: fusermount -u /path/to/local/mount/point/
Done! This is great!
Here is a more detailed step-by-step to which I give all credit:
http://www.unixmen.com/mount-remote-filesystems-ssh-using-sshfs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment