[Bug 518962] Re: ssh client does not forward X11 to local user's networked DISPLAY
David Leon
fongsled at sidor.com
Mon Mar 22 18:46:52 GMT 2010
More information: On Karmic, SSH doesn't seem to understand the ipv6
prefix of the display, unless the display number is 0.
server1: echo $DISPLAY
::ffff:10.50.50.129:4.0
server1:~$ xauth list
#ffff#3a3a666666663a31302e35302e35302e313239#:4 MIT-MAGIC-COOKIE-1 88d9f68e0648ff171df763364d5e9439
ssh -X root at server2
root at server2's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
...
server2: gedit
connect /tmp/.X11-unix/X4: No such file or directory
cannot open display:
If you change the address of the DISPLAY to a simple ipv4 or if the
display is ipv6address:0.0 you get the forwarded display but not the
xauth data:
server1:~$ export DISPLAY=10.50.50.129:4.0
SIDORVE\sirlkd at sirdevubu01:~$ xauth list
#ffff#3a3a666666663a31302e35302e35302e313239#:4 MIT-MAGIC-COOKIE-1 88d9f68e0648ff171df763364d5e9439
server1:~$ ssh -X root at server2
root at server2's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
...
server2:~# gedit
Invalid MIT-MAGIC-COOKIE-1 keycannot open display:
If you change both to ipv4 format it works:
server1:~$ export DISPLAY=10.50.50.129:4.0
server1:~$ xauth add 10.50.50.129:4.0 MIT-MAGIC-COOKIE-1 88d9f68e0648ff171df763364d5e9439
server1:~$ ssh -X root at server2
root at server2's password:
...
server2:~# gedit
server2:~#
I'll try to work around this by writing a xprofile script that does the
transformations.
--
ssh client does not forward X11 to local user's networked DISPLAY
https://bugs.launchpad.net/bugs/518962
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.
More information about the Ubuntu-server-bugs
mailing list