Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 ?)

share|improve this question
add comment

marked as duplicate by Ignacio Vazquez-Abrams, Bob, alex, Renan, Nifle Jul 26 '12 at 13:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 0 down vote accepted

First run:

ssh -Y usrA@srvA 

and then:

ssh -Y usrB@srvB 

Your display will be forwarded correctly to your laptop.

share|improve this answer
    
thank you! I tested it with my laptop and 2 ubuntu virtual machines and it works smoothly! –  Murko Jul 28 '12 at 8:00
add comment

I would say YES.

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

How to do this:

http://www.revsys.com/writings/quicktips/ssh-tunnel.html

share|improve this answer
    
No, not this way. –  Ignacio Vazquez-Abrams Jul 26 '12 at 9:34
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.