View previous topic :: View next topic |
Author |
Message |
strider2003 Apprentice
Joined: 14 Sep 2003 Posts: 151 Location: Spain
|
Posted: Wed Jun 02, 2004 9:24 pm Post subject: Need help with ssh and X11 forwarding |
|
|
I have two PCs: 'frodo' and 'gandalf'. Frodo is running an openssh server, and Gandalf can open a session on Frodo. This works fine.
The problem comes whenever I want to start an X session.
In Frodo (server):
Code: |
root@frodo# cat /etc/ssh_config | grep X11
ForwardX11 yes
root@frodo# cat /etc/sshd_config | grep X11
X11Forwarding yes
root@frodo# echo $DISPLAY
:0.0
|
In Gandalf (client):
Code: |
martinp@gandalf$ echo $DISPLAY
gandalf.arda.lan:0.0
martinp@gandalf$ ssh -X frodo
Enter passphrase for key '/home/martinp/.ssh/id_rsa':
Warning: No xauth data; using fake authentication data for X11 forwarding.
martinp@frodo$ xterm
connect gandalf.arda.lan port 6000: Connection refused
X connection to localhost:10.0 broken (explicit kill or server shutdown).
martinp@frodo$ echo $DISPLAY
localhost:10.0
|
|
|
Back to top |
|
|
JPMRaptor Guru
Joined: 04 Oct 2002 Posts: 410 Location: Maryland
|
Posted: Wed Jun 02, 2004 11:45 pm Post subject: |
|
|
I think it's getting screwed up because of the display setting on the client side before doing the ssh. Your DISPLAY on the client before doing the ssh should probably be :0. Make sure you can actually run X apps on the client side with the settings as is before doing the ssh. _________________ Underwater photo gallery
New pictures, Oct 2005 |
|
Back to top |
|
|
ajtidball n00b
Joined: 30 May 2004 Posts: 7
|
|
Back to top |
|
|
|