Skip to content

Instantly share code, notes, and snippets.

@fduran
Created February 20, 2012 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fduran/1870471 to your computer and use it in GitHub Desktop.
Save fduran/1870471 to your computer and use it in GitHub Desktop.
Linux SSH Filesystem
# Use SSH filesystem to mount locally a remote directory through SSH
# www.fduran.com
# at local server:
apt-get update; apt-get install sshfs
mkdir /path/to/local/dir
# Mounting -persists on logout- (for other ssh port add: -p port):
sshfs remoteserver.example.com:/path/to/remote/dir /path/to/local/dir
# Unmounting:
fusermount -u /path/to/local/dir
# or
umount /path/to/local/dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment