Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - trouble mapping X over ssh - SOLVED
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
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2380
Location: Kentucky

PostPosted: Wed Jan 16, 2013 12:59 am    Post subject: HELP - trouble mapping X over ssh - SOLVED Reply with quote

I just installed gentoo on a new system, 3.6.11 gentoo-sources, with openssh 5.9_p1-r4, and I edited /etc/ssh/sshd_config as follows:
Code:

#AllowTcpForwarding yes
#GatewayPorts no
GatewayPorts yes
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes

But I cannot get ssh to map X properly. The value of $DISPLAY is empty:
Code:

hophni log # echo $DISPLAY

hophni log #

Likewise, when I try to log in, it lets me login, but with an error message:
Code:

rj@moses ~ $ ssh -Y root@hophni
Password:
X11 forwarding request failed on channel 0
Last login: Mon Jan 14 01:00:20 EST 2013 from moses on pts/0
Last login: Mon Jan 14 19:58:35 2013 from moses
hophni ~ #

Why is it not forwarding X? This same setup (different kernel version) works on another machine, and /etc/ssh/sshd_config is identical there.

Oh yes, there is no firewall on the misbehaving machine, but the misbehaving machine is x86_amd, while the one that works is x86. That should not make any difference here though.

Anybody have any ideas what the problem could be?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Wed Jan 16, 2013 4:29 am; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Jan 16, 2013 1:13 am    Post subject: Reply with quote

Moriah,

What does grep ForwardX11 /etc/ssh/ssh_config return :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2380
Location: Kentucky

PostPosted: Wed Jan 16, 2013 1:26 am    Post subject: Reply with quote

Code:

hophni ~ # grep ForwardX11 /etc/ssh/ssh_config
#   ForwardX11 no
hophni ~ #

But that controls the client. My problem is logging into this machine from another machine, and X11 gets forwarded there fine for other boxes. The machine in question is the sshd server machine, not the ssh client machine. Observe:
Code:

rj@moses ~ $ ssh -Y root@eli
Last login: Tue Jan 15 20:27:46 EST 2013 from 192.168.2.2 on ssh
Last login: Tue Jan 15 20:27:51 2013 from 192.168.2.2
eli ~ # echo $DISPLAY
localhost:11.0
eli ~ # logout
Connection to eli closed.
rj@moses ~ $ ssh -Y root@hophni
Password:
X11 forwarding request failed on channel 0
Last login: Mon Jan 14 19:58:35 EST 2013 from moses on pts/0
Last login: Mon Jan 14 20:29:39 2013 from moses
hophni ~ # echo $DISPLAY

hophni ~ # logout
Connection to hophni closed.
rj@moses ~ $

The machine eli has an identical openssh sshd installation with an identical /etc/ssh/sshd_config file, so the problem is somewhere else.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22618

PostPosted: Wed Jan 16, 2013 3:14 am    Post subject: Reply with quote

Does hophni have xauth in a standard location? Does its sshd log any useful information? Is there anything helpful in ssh -vvv -Y root@hophni?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Jan 16, 2013 3:20 am    Post subject: Reply with quote

When logged into hophni does xauth info return anything :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2380
Location: Kentucky

PostPosted: Wed Jan 16, 2013 4:29 am    Post subject: Reply with quote

There was no xauth installed. :( :oops: :oops: :oops:

Once it was installed -- problem solved! :D
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
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