Possible Duplicate:
Basic ssh tunneling through generic linux ssh server/client

Recalling this question: Run a GUI app on remote computer from SSH I add more complexity asking if: It is possible to Run a GUI app on remote computer from SSH passing by another computer, again through SSH ?

For instance, I want to replicate something like that: http://www.cyberciti.biz/tips/linux-mac-osx-x11-forwarding-over-ssh-howto.html but the scenario is:

My Laptop -> ssh usrA@Server_A -> ssh usrB@Server B

I don't have yet the access in order to try this, but I've been asked to advise if I know a method of doing that

(maybe ssh -X Server_A and then ssh -X Server_B ?)


2 Answers 2


First run:

ssh -Y usrA@srvA 

and then:

ssh -Y usrB@srvB 

Your display will be forwarded correctly to your laptop.

  • thank you! I tested it with my laptop and 2 ubuntu virtual machines and it works smoothly!
    – Murko
    Jul 28, 2012 at 8:00

I would say YES.

TO do this you should create an ssh tunnel on the Server_A.

How to do this:



Not the answer you're looking for? Browse other questions tagged .