View previous topic :: View next topic |
Author |
Message |
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2381 Location: Kentucky
|
Posted: Wed Jan 16, 2013 12:59 am Post subject: HELP - trouble mapping X over ssh - SOLVED |
|
|
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 |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Wed Jan 16, 2013 1:13 am Post subject: |
|
|
Moriah,
What does grep ForwardX11 /etc/ssh/ssh_config return _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2381 Location: Kentucky
|
Posted: Wed Jan 16, 2013 1:26 am Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22782
|
Posted: Wed Jan 16, 2013 3:14 am Post subject: |
|
|
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 |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Wed Jan 16, 2013 3:20 am Post subject: |
|
|
When logged into hophni does xauth info return anything _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2381 Location: Kentucky
|
Posted: Wed Jan 16, 2013 4:29 am Post subject: |
|
|
There was no xauth installed.
Once it was installed -- problem solved! _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
|