This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Is something wrong with ssh?


Hi!

Recently I played with debugging the ssh daemon, and I've got the following strage output:
$ sshd -ddd
debug1: sshd version OpenSSH_3.4p1
debug1: private host key: #0 type 0 RSA1
debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 80.98.35.112 port 1292
debug1: Client protocol version 2.0; client software version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat OpenSSH*
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_3.4p1
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,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: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug1: dh_gen_key: priv key bits set: 133/256
debug1: bits set: 1578/3191
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug1: bits set: 1638/3191
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user joco service ssh-connection method none
debug1: attempt 0 failures 0
debug2: input_userauth_request: setting up authctxt for joco
debug2: input_userauth_request: try method none
Failed none for joco from 80.98.35.112 port 1292 ssh2
debug1: userauth-request for user joco service ssh-connection method publickey
debug1: attempt 1 failures 1
debug2: input_userauth_request: try method publickey
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 500/544 (e=500)
debug1: trying public key file /home/joco/.ssh/authorized_keys
debug2: key_type_from_name: unknown key type '1024'
debug3: key_read: no key found
debug2: user_key_allowed: check options: '1024 35 114502936203896417233570398824193845874497142691098721139570302512343916838103791665479369401341137072485559017254279887264907688223663107786762399291625381643666104457133688573185196542274287385581438610947810052452037846303593963120194416390787357991218986417057460215232320550894307474363568154503587725227 joco@EINSTEIN
'
debug2: key_type_from_name: unknown key type '35'
debug3: key_read: no key found
debug2: user_key_allowed: advance: '35 114502936203896417233570398824193845874497142691098721139570302512343916838103791665479369401341137072485559017254279887264907688223663107786762399291625381643666104457133688573185196542274287385581438610947810052452037846303593963120194416390787357991218986417057460215232320550894307474363568154503587725227 joco@EINSTEIN
'
debug1: restore_uid
debug2: key not found
debug1: temporarily_use_uid: 500/544 (e=500)
debug1: trying public key file /home/joco/.ssh/authorized_keys2
debug3: key_read: type mismatch
debug2: user_key_allowed: check options: 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA7rAJlLKcls8LtuskgQTaCkpjIU/DPpNSCgAQNV+RdXHHJYbBpApKSZoGuq+bvnKGGPwK1S79GsVD0QrIojfvFOhGrDk+msQzLw1weZ+LS1SG4EgRw/djgqmXG1T2K6h7xk9JWGzXVGmZ3HmuKDX3O57jPZMRZFal7MTlxRF5EK0= joco@EINSTEIN
'
debug2: key_type_from_name: unknown key type 'AAAAB3NzaC1yc2EAAAABIwAAAIEA7rAJlLKcls8LtuskgQTaCkpjIU/DPpNSCgAQNV+RdXHHJYbBpApKSZoGuq+bvnKGGPwK1S79GsVD0QrIojfvFOhGrDk+msQzLw1weZ+LS1SG4EgRw/djgqmXG1T2K6h7xk9JWGzXVGmZ3HmuKDX3O57jPZMRZFal7MTlxRF5EK0='
debug3: key_read: no key found
debug2: user_key_allowed: advance: 'AAAAB3NzaC1yc2EAAAABIwAAAIEA7rAJlLKcls8LtuskgQTaCkpjIU/DPpNSCgAQNV+RdXHHJYbBpApKSZoGuq+bvnKGGPwK1S79GsVD0QrIojfvFOhGrDk+msQzLw1weZ+LS1SG4EgRw/djgqmXG1T2K6h7xk9JWGzXVGmZ3HmuKDX3O57jPZMRZFal7MTlxRF5EK0= joco@EINSTEIN
'
debug1: matching key found: file /home/joco/.ssh/authorized_keys2, line 2
Found matching DSA key: f9:2c:d3:71:8c:8f:84:70:28:01:18:b5:0f:f7:f1:4f

He has found finally, that my DSA key is correct, but I don't understand, why he says that the
other keys have an unknown type? It seems that my '/home/joco/.ssh/authorized_keys' file is
syntactically incorrect. Or am I wrong?

The keys were generated with the 'ssh-user-config' utility, my OpenSSh has version 3.4p1-5.


Best regards
Jozsef Kercso


--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]