Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ellocofray/2813731c445f04eea3d62ee5e822be9e to your computer and use it in GitHub Desktop.
Save ellocofray/2813731c445f04eea3d62ee5e822be9e to your computer and use it in GitHub Desktop.
filesystem over ssh tunnel through gateway (ssh+sshfs)
ssh -f -N -L LOCAL_PORT:FROM_HOST_TO_WHERE:REMOTE_PORT gateway.host
sshfs -p LOCAL_PORT user@localhost:/nfs_mount /local/mountpoint -o reconnect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment