Created
September 29, 2017 01:13
-
-
Save decuser/7d622b1a7269b14c9cef8d7d975c8684 to your computer and use it in GitHub Desktop.
simple tunnel
This file contains 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
set up a tunnel that will exist on the remote machine back to the local machine | |
ssh -R 2222:localhost:22 remote | |
on the remote, port 2222 will refer to the local machine's port 22 | |
so to copy a file back from the remote to the local using scp | |
scp -P2222 myfile user@localhost: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment