Created
May 18, 2010 13:56
-
-
Save himynameisjonas/405030 to your computer and use it in GitHub Desktop.
ssh tunnel
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
för att skapa en tunnel från port 2222 till port 22 på en annan maskin: | |
Kod: | |
ssh -fNT -L 2222:localhost:22 [email protected] | |
För att förtydliga, om du då ansluter till localhost port 2222 så kommer du hamna på 192.0.2.1 port 22 och få en inloggningspromt från ssh daemonen på den maskinen.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment