Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help with ssh and X11 forwarding
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
strider2003
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 151
Location: Spain

PostPosted: Wed Jun 02, 2004 9:24 pm    Post subject: Need help with ssh and X11 forwarding Reply with quote

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
View user's profile Send private message
JPMRaptor
Guru
Guru


Joined: 04 Oct 2002
Posts: 410
Location: Maryland

PostPosted: Wed Jun 02, 2004 11:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
ajtidball
n00b
n00b


Joined: 30 May 2004
Posts: 7

PostPosted: Thu Jun 03, 2004 6:55 am    Post subject: Reply with quote

I'm not sure if this will help or not...

https://forums.gentoo.org/viewtopic.php?t=181103&start=0&postdays=0&postorder=asc&highlight=
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