Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X11 forward thru ssh via another computer?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Fri Jun 13, 2003 5:59 pm    Post subject: X11 forward thru ssh via another computer? Reply with quote

The setup we have is like this. my box can connect to a server which can further connect to another node, however i cannot connect to the node directly(becoz of some firewall issues on the server, which is actually a master node of a cluster).
So i can ssh into the server(master node) and then from there ssh into the node. However i want the X to be forwarded from the node to my box via the server.
Is this type of X forwarding possible?

My Box<<<<<Master<<<<<Node

Thanks
Back to top
View user's profile Send private message
Athrawn17
n00b
n00b


Joined: 07 Nov 2002
Posts: 42
Location: Des Moines IA

PostPosted: Fri Jun 13, 2003 7:01 pm    Post subject: Reply with quote

try
Code:
ssh -X host

from inside the Xserver on the client side.

Also you will need to edit your sshd.conf file to allow Xforwarding.
_________________
1 0
Just my two bits.
Back to top
View user's profile Send private message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Fri Jun 13, 2003 9:07 pm    Post subject: Reply with quote

This doesnt seem to work.

1. ssh server -X
#server>echo $DISPLAY
#server>localhost:16.0
2. #server>ssh node -X
#node> echo $DISPLAY
#node>

The $DISPLAY variable does not set for node2. I have enabled X11 Forwarding in sshd_config for node2 and server. Cant figure out what went wrong.
Can there be a firewall issue here?
Back to top
View user's profile Send private message
RagManX
Apprentice
Apprentice


Joined: 13 Jul 2002
Posts: 220
Location: Tennessee

PostPosted: Sat Jun 14, 2003 8:44 pm    Post subject: Reply with quote

I've successfully forwarded through as many as 4
Code:
ssh -X someuser@someserver
links. Not sure why it isn't working for you. Just wanted to throw in here that it can be done, because I do it all the time at work. All I've ever had to do was enable X Forwarding on the SSH server and it worked through multiple links.

RagManX
_________________
http://www.gamingideas.com/ - an open discussion site for game improvement and new game ideas
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum