Last active
March 7, 2019 16:48
-
-
Save shubhamagarwal92/053d0f97e2cb27403971c8a859985716 to your computer and use it in GitHub Desktop.
Mount remote sshfs with tunneling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install sshfs on local machine | |
# https://superuser.com/q/139023 | |
# First make a tunnel (MYPORT==2222) | |
ssh -f userA@machineB -L MYPORT:machineA:22 -N | |
# First create mylocalpath folder on local machine | |
mkdir -p mylocalpath | |
# And then mount the remote file system | |
sshfs -p MYPORT userB@localhost:/remotepath mylocalpath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment