DragonFlyBSD / DPorts

The dedicated application build system for DragonFly BSD
Other
92 stars 43 forks source link

xterm fails to write auth info #4

Closed fupjack closed 11 years ago

fupjack commented 11 years ago

Connecting to a system using DPorts with ssh and running a program to display back to the connecting machine does not work - e.g. 'ssh -y hostname; xterm'.

~/.Xauthority never gets written by sshd on login as it's supposed to. If the file exists, xauth does not complain to it, but also never writes to it. I think that data is generated by the connecting computer and copied in through ssh? Example login below.

/usr/local/bin/xauth: file /home/justin/.Xauthority does not exist /usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" command /usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" command

This was seen on two separate x86_64 DragonFly machines; one a completely new install, as the target host for login. Logins were from a DragonFly 3.2 host or a Windows machine running PuTTY and Xming.

fupjack commented 11 years ago

Debug output from ssh. It seems to be calling xauth just fine, from the debug info. It's xauth that's failing to create or update an .Xauthority file. Touching .Xauthority and chmoding it 777 gets rid of the complaint that it's not there, but nothing ever gets written to it.

justin@www# ssh -Yvvv test
OpenSSH_5.9p1-hpn13v11 DragonFly-20110920, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /home/justin/.ssh/config
debug1: /home/justin/.ssh/config line 11: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to test [192.168.0.102] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/justin/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/justin/.ssh/id_rsa type 1
debug1: identity file /home/justin/.ssh/id_rsa-cert type -1
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/justin/.ssh/id_dsa" as a RSA1 public key
debug1: identity file /home/justin/.ssh/id_dsa type 2
debug1: identity file /home/justin/.ssh/id_dsa-cert type -1
debug1: identity file /home/justin/.ssh/id_ecdsa type -1
debug1: identity file /home/justin/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.1p1-hpn13v11 DragonFly-20121028
debug1: match: OpenSSH_6.1p1-hpn13v11 DragonFly-20121028 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1-hpn13v11 DragonFly-20110920
debug2: fd 4 setting O_NONBLOCK
debug3: ssh_load_hostkeys: loading entries for host "test" from file "/home/justin/.ssh/known_hosts"
debug3: ssh_load_hostkeys: found key type ECDSA in file /home/justin/.ssh/known_hosts:82
debug3: ssh_load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: AUTH STATE IS 0
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 2f:0e:17:a2:e6:a0:61:2d:62:23:f2:93:39:ef:af:a5
debug3: ssh_load_hostkeys: loading entries for host "test" from file "/home/justin/.ssh/known_hosts"
debug3: ssh_load_hostkeys: found key type ECDSA in file /home/justin/.ssh/known_hosts:82
debug3: ssh_load_hostkeys: loaded 1 keys
debug1: Host 'test' is known and matches the ECDSA host key.
debug1: Found key in /home/justin/.ssh/known_hosts:82
debug1: ssh_ecdsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/justin/.ssh/id_rsa (0x28410120)
debug2: key: /home/justin/.ssh/id_dsa (0x284100a0)
debug2: key: /home/justin/.ssh/id_ecdsa (0x0)
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/justin/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Offering DSA public key: /home/justin/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-dss blen 435
debug2: input_userauth_pk_ok: fp aa:56:8f:75:fd:79:78:17:1e:95:43:f6:6b:0b:29:0e
debug3: sign_and_send_pubkey: DSA aa:56:8f:75:fd:79:78:17:1e:95:43:f6:6b:0b:29:0e
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/justin/.ssh/id_dsa':
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
Authenticated to test ([192.168.0.102]:22).
debug1: Final hpn_buffer_size = 131072
debug1: HPN Disabled: 0, HPN Buffer Size: 131072
debug1: channel 0: new [client-session]
debug1: Enabled Dynamic Window Scaling

debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/pkg/bin/xauth  list unix:10.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 1
debug2: client_session2_setup: id 0
debug2: fd 4 setting TCP_NODELAY
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel_input_status_confirm: type 99 id 0
debug2: X11 forwarding request accepted on channel 0
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 57344
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
Last login: Thu Jan 17 20:22:45 2013 from 192.168.0.51
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
debug2: tcpwinsz: 57920 for connection: 4

debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
DragonFly e6e019a-DEVELOPMENT (X86_64_GENERIC) #7: Sun Jan 13 01:46:35 GMT 2013

Welcome to DragonFly!

debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
/usr/local/bin/xauth:  file /home/justin/.Xauthority does not exist
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
/usr/local/bin/xauth: (stdin):1:  bad display name "unix:11.0" in "remove" command
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
/usr/local/bin/xauth: (stdin):2:  bad display name "unix:11.0" in "add" command
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
Handy bash(1) prompt:   PS1="\u@\h \w \!$ "
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
        -- David Scheidt <dscheidt@tumbolia.com>
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
> debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
xdebug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
tdebug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
edebug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
rdebug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
mdebug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4

debug2: tcpwinsz: 57920 for connection: 4
debug1: client_input_channel_open: ctype x11 rchan 3 win 57344 max 16384
debug1: client_request_x11: request from ::1 1134
debug2: fd 8 setting TCP_NODELAY
debug2: fd 8 setting O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: X11 connection uses different authentication protocol.
X11 connection rejected because of wrong authentication.
debug2: X11 rejected 1 i0/o0
debug2: channel 1: read failed
debug2: channel 1: close_read
debug2: channel 1: input open -> drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug2: channel 1: input drain -> closed
debug2: channel 1: write failed
debug2: channel 1: close_write
debug2: channel 1: output open -> closed
debug2: X11 closed 1 i3/o3
debug2: channel 1: send close
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 1: rcvd close
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 2
debug3: channel 1: status: The following connections are open:
  #0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cc -1)
  #1 x11 (t7 r3 i3/0 o3/0 fd 8/8 cc -1)

debug1: client_input_channel_open: ctype x11 rchan 3 win 57344 max 16384
debug1: client_request_x11: request from ::1 1135
debug2: fd 8 setting TCP_NODELAY
debug2: fd 8 setting O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: X11 connection uses different authentication protocol.
X11 connection rejected because of wrong authentication.
debug2: X11 rejected 1 i0/o0
debug2: channel 1: read failed
debug2: channel 1: close_read
debug2: channel 1: input open -> drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug2: channel 1: input drain -> closed
debug2: channel 1: write failed
debug2: channel 1: close_write
debug2: channel 1: output open -> closed
debug2: X11 closed 1 i3/o3
debug2: channel 1: send close
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 1: rcvd close
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 2
debug3: channel 1: status: The following connections are open:
  #0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cc -1)
  #1 x11 (t7 r3 i3/0 o3/0 fd 8/8 cc -1)

debug1: client_input_channel_open: ctype x11 rchan 3 win 57344 max 16384
debug1: client_request_x11: request from ::1 1136
debug2: fd 8 setting TCP_NODELAY
debug2: fd 8 setting O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: X11 connection uses different authentication protocol.
X11 connection rejected because of wrong authentication.
debug2: X11 rejected 1 i0/o0
debug2: channel 1: read failed
debug2: channel 1: close_read
debug2: channel 1: input open -> drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug2: channel 1: input drain -> closed
debug2: channel 1: write failed
debug2: channel 1: close_write
debug2: channel 1: output open -> closed
debug2: X11 closed 1 i3/o3
debug2: channel 1: send close
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 1: rcvd close
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 2
debug3: channel 1: status: The following connections are open:
  #0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cc -1)
  #1 x11 (t7 r3 i3/0 o3/0 fd 8/8 cc -1)

debug1: client_input_channel_open: ctype x11 rchan 3 win 57344 max 16384
debug1: client_request_x11: request from ::1 1137
debug2: fd 8 setting TCP_NODELAY
debug2: fd 8 setting O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: X11 connection uses different authentication protocol.
X11 connection rejected because of wrong authentication.
debug2: X11 rejected 1 i0/o0
debug2: channel 1: read failed
debug2: channel 1: close_read
debug2: channel 1: input open -> drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug2: channel 1: input drain -> closed
debug2: channel 1: write failed
debug2: channel 1: close_write
debug2: channel 1: output open -> closed
debug2: X11 closed 1 i3/o3
debug2: channel 1: send close
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 1: rcvd close
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 2
debug3: channel 1: status: The following connections are open:
  #0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cc -1)
  #1 x11 (t7 r3 i3/0 o3/0 fd 8/8 cc -1)

debug2: tcpwinsz: 57920 for connection: 4
xterm: debug2: tcpwinsz: 57920 for connection: 4
Xt error: Can't open display: localhost:11.0
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
> debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
debug2: tcpwinsz: 57920 for connection: 4
logout
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: tcpwinsz: 57920 for connection: 4
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: tcpwinsz: 57920 for connection: 4
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

Connection to test closed.
Transferred: sent 3976, received 3752 bytes, in 65.1 seconds
Bytes per second: sent 61.1, received 57.6
debug1: Exit status 1
fupjack commented 11 years ago

Here's the perhaps relevant part of 'ktrace -di -t+ -f /tmp/ktrace.log xauth generate :10 . trusted'

98724 xauth    CALL  access(0x8006500c0,R_OK)
98724 xauth    NAMI  "/home/justin/.Xauthority"
98724 xauth    RET   access -1 errno 2 No such file or directory
98724 xauth    CALL  mmap(0,0x7000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0x800000000,0)
98724 xauth    RET   mmap 7536640/0x730000
98724 xauth    CALL  fcntl(0x3,F_GETFL,0)
98724 xauth    RET   fcntl 2
98724 xauth    CALL  fcntl(0x3,F_SETFL,O_RDWR|O_NONBLOCK)
98724 xauth    RET   fcntl 0
98724 xauth    CALL  fcntl(0x3,F_SETFD,FD_CLOEXEC)
98724 xauth    RET   fcntl 0
98724 xauth    CALL  poll(0x7ffffffff3e0,0x1,0xffffffff)
98724 xauth    RET   poll 1
98724 xauth    CALL  writev(0x3,0x7ffffffff470,0x2)
98724 xauth    GIO   fd 3 wrote 12 bytes
       "l\0\v\0\0\0\0\0\0\0\0\0"
98724 xauth    RET   writev 12/0xc
98724 xauth    CALL  read(0x3,0x8006b01b8,0x8)
98724 xauth    RET   read -1 errno 35 Resource temporarily unavailable
98724 xauth    CALL  poll(0x7ffffffff420,0x1,0xffffffff)
98724 xauth    RET   poll 1
98724 xauth    CALL  read(0x3,0x8006b01b8,0x8)
98724 xauth    GIO   fd 3 read 8 bytes
       "\0007\v\0\0\0\^N\0"
98724 xauth    RET   read 8
98724 xauth    CALL  read(0x3,0x8007600c8,0x38)
98724 xauth    GIO   fd 3 read 56 bytes
       "PuTTY X11 proxy: wrong authorisation protocol attempted\0"
98724 xauth    RET   read 56/0x38
98724 xauth    CALL  write(0x2,0x8007600c8,0x37)
98724 xauth    GIO   fd 2 wrote 55 bytes
       "PuTTY X11 proxy: wrong authorisation protocol attempted"
98724 xauth    RET   write 55/0x37
98724 xauth    CALL  close(0x3)
98724 xauth    RET   close 0
98724 xauth    CALL  munmap(0x800730000,0x7000)
98724 xauth    RET   munmap 0
98724 xauth    CALL  socket(PF_INET6,SOCK_DGRAM,0)
98724 xauth    RET   socket 3
98724 xauth    CALL  close(0x3)
98724 xauth    RET   close 0
98724 xauth    CALL  socket(PF_INET,SOCK_DGRAM,0)
98724 xauth    RET   socket 3
98724 xauth    CALL  close(0x3)
98724 xauth    RET   close 0
98724 xauth    CALL  stat(0x80125cae2,0x7ffffffff1e0)
98724 xauth    NAMI  "/etc/nsswitch.conf"
98724 xauth    RET   stat 0
98724 xauth    CALL  open(0x80125bc20,O_RDONLY,<unused>0x1b6)
98724 xauth    NAMI  "/etc/hosts"
98724 xauth    RET   open 3
98724 xauth    CALL  fstat(0x3,0x7fffffffcf60)
98724 xauth    RET   fstat 0
98724 xauth    CALL  mmap(0,0x5000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0x7fff00000000,0)
98724 xauth    RET   mmap 7536640/0x730000
98724 xauth    CALL  read(0x3,0x800730000,0x4000)
98724 xauth    GIO   fd 3 read 1152 bytes
       "# $FreeBSD: src/etc/hosts,v 1.16 2003/01/28 21:29:23 dbaker Exp "
98724 xauth    RET   read 1152/0x480
98724 xauth    CALL  read(0x3,0x800730000,0x4000)
98724 xauth    GIO   fd 3 read 0 bytes
       ""
98724 xauth    RET   read 0
98724 xauth    CALL  close(0x3)
98724 xauth    RET   close 0
98724 xauth    CALL  munmap(0x800730000,0x5000)
98724 xauth    RET   munmap 0
98724 xauth    CALL  __sysctl(0x7ffffffff440,0x4,0,0x7ffffffff468,0,0)
98724 xauth    RET   __sysctl 0
98724 xauth    CALL  __sysctl(0x7ffffffff440,0x4,0x80148c004,0x7ffffffff468,0,0)
98724 xauth    RET   __sysctl 0
98724 xauth    CALL  socket(PF_INET6,SOCK_DGRAM,0x11)
98724 xauth    RET   socket 3
98724 xauth    CALL  connect(0x3,0x7ffffffff2b0,0x1c)
98724 xauth    RET   connect 0
98724 xauth    CALL  getsockname(0x3,0x8007500c0,0x7ffffffff2ac)
98724 xauth    RET   getsockname 0
98724 xauth    CALL  ioctl(0x3,SIOCGIFAFLAG_IN6,0x7ffffffff180)
98724 xauth    RET   ioctl -1 errno 6 Device not configured
98724 xauth    CALL  close(0x3)
98724 xauth    RET   close 0
98724 xauth    CALL  socket(PF_INET,SOCK_DGRAM,0x11)
98724 xauth    RET   socket 3
98724 xauth    CALL  connect(0x3,0x7ffffffff2b0,0x10)
98724 xauth    RET   connect 0
98724 xauth    CALL  getsockname(0x3,0x800750170,0x7ffffffff2ac)
98724 xauth    RET   getsockname 0
98724 xauth    CALL  close(0x3)
98724 xauth    RET   close 0
98724 xauth    CALL  socket(PF_INET6,SOCK_STREAM,0x6)
98724 xauth    RET   socket 3
98724 xauth    CALL  fcntl(0x3,F_SETFD,FD_CLOEXEC)
98724 xauth    RET   fcntl 0
98724 xauth    CALL  setsockopt(0x3,0x6,SO_DEBUG,0x7ffffffff59c,0x4)
98724 xauth    RET   setsockopt 0
98724 xauth    CALL  setsockopt(0x3,SOL_SOCKET,SO_KEEPALIVE,0x7ffffffff59c,0x4)
98724 xauth    RET   setsockopt 0
98724 xauth    CALL  connect(0x3,0x8007700e8,0x1c)
98724 xauth    RET   connect 0
98724 xauth    CALL  getpeername(0x3,0x800700680,0x7ffffffff49c)
98724 xauth    RET   getpeername 0
98724 xauth    CALL  __sysctl(0x7ffffffff340,0x2,0x7ffffffff3a0,0x7ffffffff338,0,0)
98724 xauth    RET   __sysctl 0
98724 xauth    CALL  access(0x8006500c0,R_OK)
98724 xauth    NAMI  "/home/justin/.Xauthority"
98724 xauth    RET   access -1 errno 2 No such file or directory
98724 xauth    CALL  mmap(0,0x7000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0x800000000,0)
98724 xauth    RET   mmap 7536640/0x730000
98724 xauth    CALL  fcntl(0x3,F_GETFL,0)
98724 xauth    RET   fcntl 2
98724 xauth    CALL  fcntl(0x3,F_SETFL,O_RDWR|O_NONBLOCK)
98724 xauth    RET   fcntl 0
98724 xauth    CALL  fcntl(0x3,F_SETFD,FD_CLOEXEC)
98724 xauth    RET   fcntl 0
98724 xauth    CALL  poll(0x7ffffffff3e0,0x1,0xffffffff)
98724 xauth    RET   poll 1
98724 xauth    CALL  writev(0x3,0x7ffffffff470,0x2)
98724 xauth    GIO   fd 3 wrote 12 bytes
       "l\0\v\0\0\0\0\0\0\0\0\0"
98724 xauth    RET   writev 12/0xc
98724 xauth    CALL  read(0x3,0x8006b01c8,0x8)
98724 xauth    RET   read -1 errno 35 Resource temporarily unavailable
98724 xauth    CALL  poll(0x7ffffffff420,0x1,0xffffffff)
98724 xauth    RET   poll 1
98724 xauth    CALL  read(0x3,0x8006b01c8,0x8)
98724 xauth    GIO   fd 3 read 8 bytes
       "\0007\v\0\0\0\^N\0"
98724 xauth    RET   read 8
98724 xauth    CALL  read(0x3,0x8007600c8,0x38)
98724 xauth    GIO   fd 3 read 56 bytes
       "PuTTY X11 proxy: wrong authorisation protocol attempted\0"
98724 xauth    RET   read 56/0x38
98724 xauth    CALL  write(0x2,0x8007600c8,0x37)
98724 xauth    GIO   fd 2 wrote 55 bytes
       "PuTTY X11 proxy: wrong authorisation protocol attempted"
98724 xauth    RET   write 55/0x37
98724 xauth    CALL  close(0x3)
98724 xauth    RET   close 0
98724 xauth    CALL  munmap(0x800730000,0x7000)
98724 xauth    RET   munmap 0
98724 xauth    CALL  write(0x2,0x7ffffffff030,0x12)
98724 xauth    GIO   fd 2 wrote 18 bytes
       "xauth: (argv):1:  "
98724 xauth    RET   write 18/0x12
98724 xauth    CALL  write(0x2,0x7ffffffff040,0x1e)
98724 xauth    GIO   fd 2 wrote 30 bytes
       "unable to open display ":10".
       "
98724 xauth    RET   write 30/0x1e
98724 xauth    CALL  unlink(0x7fffffffeff0)
98724 xauth    NAMI  "/home/justin/.Xauthority-c"
98724 xauth    RET   unlink 0
98724 xauth    CALL  unlink(0x7fffffffebe0)
98724 xauth    NAMI  "/home/justin/.Xauthority-l"
98724 xauth    RET   unlink 0
98724 xauth    CALL  umask(S_IWGRP|S_IWOTH)
98724 xauth    RET   umask 63/0x3f
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff6c0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff660)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff660)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff660)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff660)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff660)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff660)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff660)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff660)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_BLOCK,0x800821d00,0x7ffffffff660)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  sigprocmask(SIG_SETMASK,0x800821d10,0)
98724 xauth    RET   sigprocmask 0
98724 xauth    CALL  exit(0x1)
jrmarino commented 11 years ago

From IRC last night: 1) set hostname in /etc/rc.conf required 2) adjust location of binary in /etc/ssh/sshd_config 3) set hostname in /etc/dhclient.conf

If that solves the problem, I'd like to close this issue.

fupjack commented 11 years ago

I'll test to confirm - I wrote down the steps but I wasn't able to boot up a DPorts-using image last night due to time constraints.

fupjack commented 11 years ago

Confirmed, fixed.