ssh -XYC user@server xterm
The options are:
- X: enables x11 forwarding
- Y: enables trusted x11 forwarding
- C: compresses the communication
- xterm: can be substituted with other commands that are available on the server
X11 forwarding over multiple ssh hops
Suppose you do not have direct ssh access to server2. You can access server2 via server1 over ssh. (localhost => server1 => server2)
- In terminal 1:
ssh server1 -L2200:server2:22
- In terminal 2:
ssh localhost -XYC -p2200 xterm
It will run xterm on server2 and displays back to localhost.
No comments:
Post a Comment