Difference between revisions of "Tunneling with OpenSSH"
From Linuxintro
imported>ThorstenStaerk (Created page with "SSH Tunneling or SSH port forwarding is typically useful if you have a network with a private segment like this: ...") |
imported>ThorstenStaerk |
||
Line 6: | Line 6: | ||
| | | | | | ||
| | | | | | ||
− | + | --------- ----------- -------------- | | |
− | + | |localhost|------------------------------| gateway |------------------| hidden | | | |
− | + | --------- | 10.2.2.18 | | 172.16.0.42 | | | |
− | + | ----------- -------------- | | |
| | | | | | ||
----------------------------------------------------------- | ----------------------------------------------------------- | ||
+ | |||
+ | ssh -L 2222:172.16.0.42:22 gateway |
Revision as of 15:29, 12 July 2012
SSH Tunneling or SSH port forwarding is typically useful if you have a network with a private segment like this:
----------------------------------------------------------- | | | | --------- ----------- -------------- | |localhost|------------------------------| gateway |------------------| hidden | | --------- | 10.2.2.18 | | 172.16.0.42 | | ----------- -------------- | | | -----------------------------------------------------------
ssh -L 2222:172.16.0.42:22 gateway