Skip to content

Instantly share code, notes, and snippets.

@fduran
Created February 20, 2012 18:21
Show Gist options
  • 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