X11 forwarding issues with Linux

Hideaki YOSHIFUJI yoshfuji at ecei.tohoku.ac.jp
Mon Feb 14 17:52:54 EST 2000


Hi,

>I think I might have a bug here, but I'm not sure.
>
>I just cannot seem to win with X11 forwarding and OpenSSH-1.2.2!  
>The shell works fine though.
:
>After I compiled it in, with the 2.3.42 kernel, sshd was saying this:
>
>debug: Received request for X11 forwarding with auth spoofing.
>debug: bind port 6010: Address already in use
>debug: bind port 6011: Address already in use
>...
>debug: bind port 6998: Address already in use
>debug: bind port 6999: Address already in use
>error: Failed to allocate internet-domain X11 display socket.
>debug: Forking shell.

This is because the Linux kernel won't have sockets
bound to the same ports even in different families (like IPv6 and
IPv4).
(This problem also exists in old IPv6 patch for ssh-nonfree.)

I've made a patch and it is available at
<http://chiharu.v6.linux.or.jp/pub/Linux/IPv6-2/openssh/openssh-1.2.2.linux-20000214.patch.gz>

It also fixes the IPv4-mapped address problem (sshd on IPv6 node 
warns connections from ssh/IPv4).


Thanks.

-- 
Hideaki YOSHIFUJI <yoshfuji at ecei.tohoku.ac.jp>
Web Page: http://www.ecei.tohoku.ac.jp/%7Eyoshfuji/
PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25 





More information about the openssh-unix-dev mailing list