I have two servers (lets say A and B). In order to ssh into A, I need to ssh into B first, and then into A. I want to run some GUI applications on A, so I am looking to forward X11 twice over ssh.

However when I run an application from A I get:

Error: no display specified
link|improve this question

33% accept rate
feedback

migrated from stackoverflow.com Mar 25 '11 at 7:53

This question came from our site for professional and enthusiast programmers.

2 Answers

Make sure that you're adding the -Y flag, and that X11 forwarding is enabled in both servers' ssh config files in /etc/ssh/sshd_config.

link|improve this answer
yes and yes ... – Vaibhav Bajpai Mar 22 '11 at 17:13
feedback

would the following work for you?

export DISPLAY=serverB:0
link|improve this answer
well, I gave export DISPLAY:IPAddressOfB:0 (didn't work) – Vaibhav Bajpai Mar 22 '11 at 17:14
feedback

Your Answer

 
or
required, but never shown

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