[Cyberduck-trac] [Cyberduck] #8102: Cyberduck throws NullPointerException during SFTP connect with public key

Cyberduck trac at trac.cyberduck.io
Wed Jul 23 17:55:12 UTC 2014


#8102: Cyberduck throws NullPointerException during SFTP connect with public key
------------------------+---------------------------
    Reporter:  mmoores  |      Owner:
        Type:  defect   |     Status:  new
    Priority:  normal   |  Milestone:
   Component:  core     |    Version:  4.5
    Severity:  normal   |   Keywords:
Architecture:  Intel    |   Platform:  Mac OS X 10.9
------------------------+---------------------------
 With Version 4.5 (14905), I am trying to "Open Connection" with SFTP to a
 server using Public Key Authentication.
 I checked the checkbox "Use Public Key Authentication", and entered my
 Username.
 The "Anonymous Login" and "Add to Keychain" checkboxes are unchecked.
 My private key is specified ("~/.ssh/id_rsa").

 When I try to connect I get a dialog with "Connection Failed", and no
 additional info.
 I turned on the debug mode and then tried the same action while tailing my
 system.log.
 The output shows an NPE:

 Jul 23 10:38:49 localhost Cyberduck[36006]: [reader] ERROR
 net.schmizz.sshj.transport.TransportImpl - Dying because - {}

         java.lang.NullPointerException
                 at
 ch.cyberduck.core.sftp.openssh.OpenSSHHostKeyVerifier.verify(OpenSSHHostKeyVerifier.java:124)
                 at
 ch.cyberduck.core.sftp.SFTPSession$1.verify(SFTPSession.java:128)
                 at
 net.schmizz.sshj.transport.KeyExchanger.verifyHost(KeyExchanger.java:218)
                 at
 net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:373)
                 at
 net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:478)
                 at
 net.schmizz.sshj.transport.Decoder.decode(Decoder.java:127)
                 at
 net.schmizz.sshj.transport.Decoder.received(Decoder.java:195)
                 at net.schmizz.sshj.transport.Reader.run(Reader.java:82)


 If I execute sftp directly on the command line, I can connect.  I am also
 pasting in the debug output:

 localhost:~ moores$ sftp -vv mmoores at ingester-
 app01.dev.realplayercloud.com
 OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
 debug1: Reading configuration data /Users/moores/.ssh/config
 debug1: Reading configuration data /etc/ssh_config
 debug1: /etc/ssh_config line 20: Applying options for *
 debug1: /etc/ssh_config line 53: Applying options for *
 debug2: ssh_connect: needpriv 0
 debug1: Connecting to ingester-app01.dev.realplayercloud.com
 [10.230.11.227] port 22.
 debug1: Connection established.
 debug1: identity file /Users/moores/.ssh/id_rsa type 1
 debug1: identity file /Users/moores/.ssh/id_rsa-cert type -1
 debug1: identity file /Users/moores/.ssh/id_dsa type 2
 debug1: identity file /Users/moores/.ssh/id_dsa-cert type -1
 debug1: Enabling compatibility mode for protocol 2.0
 debug1: Local version string SSH-2.0-OpenSSH_6.2
 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2
 debug1: match: OpenSSH_6.2 pat OpenSSH*
 debug2: fd 3 setting O_NONBLOCK
 debug1: SSH2_MSG_KEXINIT sent
 debug1: SSH2_MSG_KEXINIT received
 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-
 hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-
 group1-sha1
 debug2: kex_parse_kexinit: ssh-rsa-cert-v01 at openssh.com,ssh-rsa-
 cert-v00 at openssh.com,ssh-rsa,ssh-dss-cert-v01 at openssh.com,ssh-dss-
 cert-v00 at openssh.com,ssh-dss
 debug2: kex_parse_kexinit:
 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm at openssh.com,aes256-gcm at openssh.com,aes128-cbc
 ,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-
 cbc at lysator.liu.se
 debug2: kex_parse_kexinit:
 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm at openssh.com,aes256-gcm at openssh.com,aes128-cbc
 ,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-
 cbc at lysator.liu.se
 debug2: kex_parse_kexinit: hmac-md5-etm at openssh.com,hmac-
 sha1-etm at openssh.com,umac-64-etm at openssh.com,umac-128-etm at openssh.com
 ,hmac-sha2-256-etm at openssh.com,hmac-sha2-512-etm at openssh.com,hmac-
 ripemd160-etm at openssh.com,hmac-sha1-96-etm at openssh.com,hmac-
 md5-96-etm at openssh.com,hmac-md5,hmac-
 sha1,umac-64 at openssh.com,umac-128 at openssh.com,hmac-sha2-256,hmac-sha2-512
 ,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
 debug2: kex_parse_kexinit: hmac-md5-etm at openssh.com,hmac-
 sha1-etm at openssh.com,umac-64-etm at openssh.com,umac-128-etm at openssh.com
 ,hmac-sha2-256-etm at openssh.com,hmac-sha2-512-etm at openssh.com,hmac-
 ripemd160-etm at openssh.com,hmac-sha1-96-etm at openssh.com,hmac-
 md5-96-etm at openssh.com,hmac-md5,hmac-
 sha1,umac-64 at openssh.com,umac-128 at openssh.com,hmac-sha2-256,hmac-sha2-512
 ,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
 debug2: kex_parse_kexinit: none,zlib at openssh.com,zlib
 debug2: kex_parse_kexinit: none,zlib at 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-gcm at openssh.com,aes256-gcm at openssh.com,aes128-cbc
 ,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-
 cbc at lysator.liu.se
 debug2: kex_parse_kexinit:
 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm at openssh.com,aes256-gcm at openssh.com,aes128-cbc
 ,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-
 cbc at lysator.liu.se
 debug2: kex_parse_kexinit: hmac-md5-etm at openssh.com,hmac-
 sha1-etm at openssh.com,umac-64-etm at openssh.com,umac-128-etm at openssh.com
 ,hmac-sha2-256-etm at openssh.com,hmac-sha2-512-etm at openssh.com,hmac-
 ripemd160-etm at openssh.com,hmac-sha1-96-etm at openssh.com,hmac-
 md5-96-etm at openssh.com,hmac-md5,hmac-
 sha1,umac-64 at openssh.com,umac-128 at openssh.com,hmac-sha2-256,hmac-sha2-512
 ,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
 debug2: kex_parse_kexinit: hmac-md5-etm at openssh.com,hmac-
 sha1-etm at openssh.com,umac-64-etm at openssh.com,umac-128-etm at openssh.com
 ,hmac-sha2-256-etm at openssh.com,hmac-sha2-512-etm at openssh.com,hmac-
 ripemd160-etm at openssh.com,hmac-sha1-96-etm at openssh.com,hmac-
 md5-96-etm at openssh.com,hmac-md5,hmac-
 sha1,umac-64 at openssh.com,umac-128 at openssh.com,hmac-sha2-256,hmac-sha2-512
 ,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
 debug2: kex_parse_kexinit: none,zlib at openssh.com
 debug2: kex_parse_kexinit: none,zlib at 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-etm at openssh.com
 debug1: kex: server->client aes128-ctr hmac-md5-etm at openssh.com none
 debug2: mac_setup: found hmac-md5-etm at openssh.com
 debug1: kex: client->server aes128-ctr hmac-md5-etm at openssh.com none
 debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
 debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
 debug2: dh_gen_key: priv key bits set: 128/256
 debug2: bits set: 524/1024
 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
 debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
 debug1: Server host key: RSA
 30:95:d1:11:13:01:a9:3a:dc:51:0d:43:06:26:c0:69
 debug1: Host 'ingester-app01.dev.realplayercloud.com' is known and matches
 the RSA host key.
 debug1: Found key in /Users/moores/.ssh/known_hosts:208
 debug2: bits set: 482/1024
 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: /Users/moores/.ssh/id_rsa (0x7fe363c0c080),
 debug2: key: /Users/moores/.ssh/id_dsa (0x7fe363c0c840),
 debug1: Authentications that can continue: publickey
 debug1: Next authentication method: publickey
 debug1: Offering RSA public key: /Users/moores/.ssh/id_rsa
 debug2: we sent a publickey packet, wait for reply
 debug1: Server accepts key: pkalg ssh-rsa blen 277
 debug2: input_userauth_pk_ok: fp
 73:9c:75:c9:f5:53:f6:c3:50:52:01:ed:9e:25:6d:a6
 debug1: Authentication succeeded (publickey).
 Authenticated to ingester-app01.dev.realplayercloud.com
 ([10.230.11.227]:22).
 debug2: fd 5 setting O_NONBLOCK
 debug1: channel 0: new [client-session]
 debug2: channel 0: send open
 debug1: Requesting no-more-sessions at openssh.com
 debug1: Entering interactive session.
 debug2: callback start
 debug2: fd 3 setting TCP_NODELAY
 debug2: client_session2_setup: id 0
 debug1: Sending environment.
 debug1: Sending env LANG = en_US.UTF-8
 debug2: channel 0: request env confirm 0
 debug1: Sending subsystem: sftp
 debug2: channel 0: request subsystem confirm 1
 debug2: callback done
 debug2: channel 0: open confirm rwindow 0 rmax 32768
 debug2: channel 0: rcvd adjust 2097152
 debug2: channel_input_status_confirm: type 99 id 0
 debug2: subsystem request accepted on channel 0
 debug2: Remote version: 3
 debug2: Server supports extension "posix-rename at openssh.com" revision 1
 debug2: Server supports extension "statvfs at openssh.com" revision 2
 debug2: Server supports extension "fstatvfs at openssh.com" revision 2
 debug2: Server supports extension "hardlink at openssh.com" revision 1
 Connected to ingester-app01.dev.realplayercloud.com.
 sftp>

-- 
Ticket URL: <https://trac.cyberduck.io/ticket/8102>
Cyberduck <http://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows


More information about the Cyberduck-trac mailing list