Difference between revisions of "Category:SSH"
From GelhausRef
m |
m (Added missing hyphen) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
== OpenSSH == | == OpenSSH == | ||
− | $ ssh L2200:server2:22 server1 | + | $ ssh -L2200:server2:22 server1 |
$ ssh -p2200 -X localhost | $ ssh -p2200 -X localhost | ||
Line 15: | Line 15: | ||
[[Image:Putty X11 tunnel.png]] | [[Image:Putty X11 tunnel.png]] | ||
− | + | Once the connection is established, keep that window open to maintain the port forwarding. | |
2. Then SSH to localhost:2200 with X11 forwarding enabled. | 2. Then SSH to localhost:2200 with X11 forwarding enabled. | ||
+ | |||
+ | == See Also == | ||
+ | * [http://staff.washington.edu/corey/fw/ssh-port-forwarding.html Page on SSH Port Forwarding] |
Latest revision as of 14:04, 1 February 2012
Tunneling X11 through intermediate host
server1 intermediate host
server2 destination
2200 is an example port on localhost, this could be assigned other ports as well.
OpenSSH
$ ssh -L2200:server2:22 server1 $ ssh -p2200 -X localhost
PuTTY
1. Set up the tunnel and open a connection to the intermediate server:
Once the connection is established, keep that window open to maintain the port forwarding.
2. Then SSH to localhost:2200 with X11 forwarding enabled.
See Also
This category currently contains no pages or media.