[PLUG] ssh tunnel's X11 display isn't showing up on remote machine...

Russell Senior seniorr at aracnet.com
Thu Dec 18 14:52:01 UTC 2003


>>>>> "Russell" == Russell Senior <seniorr at aracnet.com> writes:

Russell> So, a clue.  Thanks for unbaffling me.

I did an strace on the sshd process, and what seems to be the critical
region shows:

   [...]
   183   write(2, "debug1: session_by_channel: sess"..., 49) = 49
   183   write(2, "debug1: session_input_channel_re"..., 58) = 58
   183   stat64("/usr/bin/X11/xauth", {st_mode=S_IFREG|0755, st_size=31896, ...}) = 0
   183   socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = -1 EAFNOSUPPORT (Address family not supported by protocol)
   183   write(2, "debug1: x11_create_display_inet:"..., 65) = 65
   183   socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 11
   183   bind(11, {sa_family=AF_INET, sin_port=htons(6010), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
   183   write(2, "debug1: bind port 6010: Cannot a"..., 57) = 57
   183   close(11)                         = 0
   183   socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = -1 EAFNOSUPPORT (Address family not supported by protocol)
   183   write(2, "debug1: x11_create_display_inet:"..., 65) = 65
   183   socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 11
   183   bind(11, {sa_family=AF_INET, sin_port=htons(6011), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
   183   write(2, "debug1: bind port 6011: Cannot a"..., 57) = 57
   183   close(11)                         = 0
   [...]

Hmm.  WTF is EADDRNOTAVAIL?  Hmm.  Google tells me:

  <http://www.wlug.org.nz/EADDRNOTAVAIL>

Aha!  lo wasn't configured with an address!

  # ifconfig lo
  lo        Link encap:Local Loopback  
            LOOPBACK  MTU:16436  Metric:1
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0 
            RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Workie now.  Thanks!

-- 
Russell Senior         ``With a heavy dose of fear and violence and a lot
seniorr at aracnet.com      of money for projects, I think we can convince
                         these people we are here to help them.''
                         Lt. Col. Nathan Sassaman (12/07/2003 Oregonian A13)




More information about the PLUG mailing list