[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#738693: ssh -W causes "getsockname failed: Bad file descriptor" errors



Package: openssh-client
Version: 1:6.5p1-2
Severity: normal

Client and server use the same version.

md@bongo:~$ ssh -vvv -a -x -W server2.example.net:22 localhost
OpenSSH_6.5, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /home/md/.ssh/config
debug3: cipher ok: arcfour128 [arcfour128]
debug3: ciphers ok: [arcfour128]
debug1: /home/md/.ssh/config line 8: Applying options for *
debug1: /home/md/.ssh/config line 106: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/home/md/.ssh/.control_localhost_22_md" does not exist
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [::1] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/md/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/md/.ssh/id_rsa type 1
debug1: identity file /home/md/.ssh/id_rsa-cert type -1
debug1: identity file /home/md/.ssh/id_dsa type -1
debug1: identity file /home/md/.ssh/id_dsa-cert type -1
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/md/.ssh/id_ecdsa" as a RSA1 public key
debug1: identity file /home/md/.ssh/id_ecdsa type 3
debug1: identity file /home/md/.ssh/id_ecdsa-cert type -1
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/md/.ssh/id_ed25519" as a RSA1 public key
debug1: identity file /home/md/.ssh/id_ed25519 type 4
debug1: identity file /home/md/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.5p1 Debian-2
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.5p1 Debian-2
debug1: match: OpenSSH_6.5p1 Debian-2 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "localhost" from file "/home/md/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/md/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
[...]
debug2: mac_setup: found hmac-md5-etm@openssh.com
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug2: mac_setup: found hmac-md5-etm@openssh.com
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: RSA (elided)
debug3: load_hostkeys: loading entries for host "localhost" from file "/home/md/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/md/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /home/md/.ssh/known_hosts:4
debug1: ssh_rsa_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/md/.ssh/id_rsa (0xf8d02680),
debug2: key: /home/md/.ssh/id_rsa-xxx (0xf8d08dc8),
debug2: key: /home/md/.ssh/id_dsa ((nil)),
debug2: key: /home/md/.ssh/id_ecdsa (0xf8d06b48),
debug2: key: /home/md/.ssh/id_ed25519 (0xf8d08868),
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
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/md/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug2: input_userauth_pk_ok: fp (elided)
debug3: sign_and_send_pubkey: RSA (elided)
debug1: Authentication succeeded (publickey).
Authenticated to localhost ([::1]:22).
debug3: ssh_init_stdio_forwarding: server2.example.net:22
debug1: channel_connect_stdio_fwd server2.example.net:22
debug1: channel 0: new [stdio-forward]
debug2: fd 4 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
getsockname failed: Bad file descriptor
debug1: getpeername failed: Bad file descriptor
debug1: setting up multiplex master socket
debug3: muxserver_listen: temporary control path /home/md/.ssh/.control_localhost_22_md.TEl3AzgzLahGgDZd
debug2: fd 6 setting O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug1: channel 1: new [/home/md/.ssh/.control_localhost_22_md]
debug3: muxserver_listen: mux listener channel 1 fd 6
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IPV6_TCLASS 0x08
debug1: Entering interactive session.
debug2: channel 0: open confirm rwindow 2097152 rmax 32768
SSH-2.0-OpenSSH_6.0p1 Debian-4
md@bongo:~$


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openssh-client depends on:
ii  adduser           3.113+nmu3
ii  dpkg              1.17.6
ii  libc6             2.17-97
ii  libedit2          3.1-20130712-2
ii  libgssapi-krb5-2  1.12+dfsg-2
ii  libselinux1       2.2.2-1
ii  libssl1.0.0       1.0.1f-1
ii  passwd            1:4.1.5.1-1
ii  zlib1g            1:1.2.8.dfsg-1

Versions of packages openssh-client recommends:
ii  xauth  1:1.0.7-1

Versions of packages openssh-client suggests:
pn  keychain      <none>
pn  libpam-ssh    <none>
pn  monkeysphere  <none>
pn  ssh-askpass   <none>

-- no debconf information

-- 
ciao,
Marco

Attachment: signature.asc
Description: Digital signature


Reply to: