Public bug reported:

Binary package hint: openssh-client

ssh X11 forwarding to my intrepid client from my openssh server used to
work, but it always fails now, with "Invalid MIT-MAGIC-COOKIE".  Please
see the example session log below.

Forwarding succeeds to a Windows client running PuTTY, so the problem
isn't with the server, so I conclude that it's with the client.  I'd be
glad to provide further information or troubleshooting.

Thanks, Andrew.

$ lsb_release -rd
Description:    Ubuntu 8.10
Release:        8.10

$ apt-cache policy openssh-client
openssh-client:
  Installed: 1:5.1p1-3ubuntu1
  Candidate: 1:5.1p1-3ubuntu1
  Version table:
 *** 1:5.1p1-3ubuntu1 0
        500 http://us.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

$ ssh -v -X -l andrex 5200-glenwood.net kate
OpenSSH_5.1p1 Debian-3ubuntu1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 5200-glenwood.net [68.55.218.17] port 22.
debug1: Connection established.
debug1: identity file /home/carey/.ssh/identity type -1
debug1: identity file /home/carey/.ssh/id_rsa type -1
debug1: identity file /home/carey/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 
Debian-5
debug1: match: OpenSSH_5.1p1 Debian-5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-3ubuntu1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '5200-glenwood.net' is known and matches the RSA host key.
debug1: Found key in /home/carey/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: Public Key
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessi...@openssh.com
debug1: Entering interactive session.
debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: kate
debug1: client_input_channel_open: ctype x11 rchan 2 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 58398
debug1: channel 1: new [x11]
debug1: confirm x11
Invalid MIT-MAGIC-COOKIE-1 keykate: cannot connect to X server localhost:10.0
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype e...@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 2
debug1: channel 1: free: x11, nchannels 1
Transferred: sent 2448, received 2544 bytes, in 0.4 seconds
Bytes per second: sent 6107.1, received 6346.5
debug1: Exit status 1

** Affects: openssh (Ubuntu)
     Importance: Undecided
         Status: New

-- 
X11 forwarding fails (Invalid MIT-MAGIC-COOKIE)
https://bugs.launchpad.net/bugs/358612
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to