Hi there,

hope you can help with a problem I encountered switching from ssh2.0
to OpenSSH 2.2.1.

I just recently switch from the restricted non-commercial version of
ssh2.0 to openssh 2.2.1. I compiled all parts of openssh (zlib 1.1.3,
openssl 0.9.5a, and openssh 2.2.1) totally from scratch new and
installed it after removing the old ssh from my mashine.

Starting openssh 2.2.1 daemon does work okay and standard Password
Auth does work fine too. But neither Version 1 RSA nor Version 2 DSA
PublicKey Authentification does work.

I tried all possible combinations with copying the appropriate files
(identity.pub to authorized_keys and id_dsa.pub to authorized_keys2)
as used under the old ssh2.0 (restricted version) but I just cannot
establish a login with this PublicKey Auth. Always ssh switches back
to Password Auth.

At the end of this mail is a Part of the DebugLogfiles during my Connect Attempts.

I hope anyone knows this Problem and got a solution for it.

Thanx a lot in advance for your help.

Best Regards
Dirk Schietsch

-------------------------start of debuglog here ----------
Jul 27 15:46:23 bastion sshd[21047]: debug: Forked child 22698.
Jul 27 15:46:23 bastion sshd[22698]: Connection from xx.xx.xx.xx port 970
Jul 27 15:46:23 bastion sshd[21047]: debug: Seeding random number generator
Jul 27 15:46:23 bastion sshd[22698]: debug: Client protocol version 1.5; client 
software version OpenSSH_2.1.1
Jul 27 15:46:23 bastion sshd[22698]: debug: Local version string SSH-1.99-OpenSSH_2.1.1
Jul 27 15:46:23 bastion sshd[22698]: debug: Sent 768 bit public key and 1024 bit host 
key.
Jul 27 15:46:23 bastion sshd[22698]: debug: Encryption type: 3des
Jul 27 15:46:24 bastion sshd[22698]: debug: Received session key; encryption turned on.
Jul 27 15:46:24 bastion sshd[22698]: debug: Installing crc compensation attack 
detector.
Jul 27 15:46:24 bastion sshd[22698]: debug: Attempting authentication for dsc.
Jul 27 15:46:24 bastion sshd[22698]: Failed rsa for dsc from xx.xx.xx.xx port 970
Jul 27 15:46:25 bastion sshd[22698]: Accepted password for dsc from xx.xx.xx.xx port 
970
Jul 27 15:46:25 bastion sshd[22698]: debug: session_new: init
Jul 27 15:46:25 bastion sshd[22698]: debug: session_new: session 0
Jul 27 15:46:26 bastion sshd[22698]: debug: Allocating pty.
Jul 27 15:46:26 bastion sshd[22698]: debug: Entering interactive session.
Jul 27 15:46:26 bastion sshd[22699]: debug: Setting controlling tty using TIOCSCTTY.
Jul 27 15:46:26 bastion sshd[22698]: debug: fd 5 setting O_NONBLOCK
Jul 27 15:46:26 bastion sshd[22698]: debug: server_init_dispatch_13
Jul 27 15:46:26 bastion sshd[22698]: debug: server_init_dispatch_15
Jul 27 15:46:26 bastion sshd[22698]: debug: tvp!=NULL kid 0 mili 10
Jul 27 15:46:26 bastion sshd[22698]: debug: tvp!=NULL kid 0 mili 10
Jul 27 15:46:27 bastion sshd[22671]: debug: tvp!=NULL kid 0 mili 10
Jul 27 15:46:29 bastion last message repeated 11 times
Jul 27 15:46:31 bastion sshd[22698]: Connection closed by remote host.
Jul 27 15:46:32 bastion sshd[22698]: debug: Calling cleanup 0x8052070(0x80ce7a4)
Jul 27 15:46:32 bastion sshd[22698]: debug: pty_cleanup_proc: /dev/ttyp3
Jul 27 15:46:32 bastion sshd[22698]: debug: Calling cleanup 0x805dc70(0x0)
Jul 27 15:46:33 bastion sshd[22671]: debug: tvp!=NULL kid 0 mili 10
Jul 27 15:46:55 bastion last message repeated 8 times
Jul 27 15:47:03 bastion sshd[21047]: debug: Forked child 22728.
Jul 27 15:47:03 bastion sshd[22728]: Connection from xx.xx.xx.xx port 728
Jul 27 15:47:03 bastion sshd[21047]: debug: Seeding random number generator
Jul 27 15:47:03 bastion sshd[22728]: debug: Client protocol version 2.0; client 
software version OpenSSH_2.1.1
Jul 27 15:47:03 bastion sshd[22728]: Enabling compatibility mode for protocol 2.0
Jul 27 15:47:03 bastion sshd[22728]: debug: Local version string SSH-1.99-OpenSSH_2.1.1
Jul 27 15:47:03 bastion sshd[22728]: debug: send KEXINIT
Jul 27 15:47:04 bastion sshd[22728]: debug: done
Jul 27 15:47:04 bastion sshd[22728]: debug: wait KEXINIT
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: diffie-hellman-group1-sha1
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: ssh-dss
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: 
3des-cbc,blowfish-cbc,arcfour,cast128-cbc
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: 
3des-cbc,blowfish-cbc,arcfour,cast128-cbc
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: 
hmac-sha1,hmac-md5,[EMAIL PROTECTED]
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: 
hmac-sha1,hmac-md5,[EMAIL PROTECTED]
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: none
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: none
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: 
Jul 27 15:47:04 bastion sshd[22728]: debug: got kexinit: 
Jul 27 15:47:04 bastion sshd[22728]: debug: first kex follow: 0 
Jul 27 15:47:04 bastion sshd[22728]: debug: reserved: 0 
Jul 27 15:47:04 bastion sshd[22728]: debug: done
Jul 27 15:47:04 bastion sshd[22728]: debug: kex: client->server 3des-cbc hmac-sha1 none
Jul 27 15:47:04 bastion sshd[22728]: debug: kex: server->client 3des-cbc hmac-sha1 none
Jul 27 15:47:04 bastion sshd[22728]: debug: Wait SSH2_MSG_KEXDH_INIT.
Jul 27 15:47:04 bastion sshd[22728]: debug: bits set: 522/1024
Jul 27 15:47:04 bastion sshd[22728]: debug: bits set: 505/1024
Jul 27 15:47:04 bastion sshd[22728]: debug: sig size 20 20
Jul 27 15:47:04 bastion sshd[22728]: debug: send SSH2_MSG_NEWKEYS.
Jul 27 15:47:04 bastion sshd[22728]: debug: done: send SSH2_MSG_NEWKEYS.
Jul 27 15:47:04 bastion sshd[22728]: debug: Wait SSH2_MSG_NEWKEYS.
Jul 27 15:47:06 bastion sshd[22728]: debug: GOT SSH2_MSG_NEWKEYS.
Jul 27 15:47:06 bastion sshd[22728]: debug: done: KEX2.
Jul 27 15:47:06 bastion sshd[22728]: debug: userauth-request for user dsc service 
ssh-connection method none
Jul 27 15:47:06 bastion sshd[22728]: Failed none for dsc from xx.xx.xx.xx port 728 ssh2
Jul 27 15:47:06 bastion sshd[22728]: debug: userauth-request for user dsc service 
ssh-connection method publickey
Jul 27 15:47:06 bastion sshd[22728]: debug: keytype ssh-dss
Jul 27 15:47:06 bastion sshd[22728]: Failed publickey for dsc from xx.xx.xx.xx port 
728 ssh2
Jul 27 15:47:07 bastion sshd[22728]: debug: userauth-request for user dsc service 
ssh-connection method password
Jul 27 15:47:07 bastion sshd[22728]: Accepted password for dsc from xx.xx.xx.xx port 
728 ssh2
Jul 27 15:47:07 bastion sshd[22728]: debug: Entering interactive session for SSH2.
Jul 27 15:47:08 bastion sshd[22728]: debug: server_init_dispatch_20
Jul 27 15:47:08 bastion sshd[22728]: debug: channel_input_open: ctype session rchan 0 
win 32768 max 4096
Jul 27 15:47:08 bastion sshd[22728]: debug: open session
Jul 27 15:47:08 bastion sshd[22728]: debug: channel 0: new [server-session]
Jul 27 15:47:08 bastion sshd[22728]: debug: session_new: init
Jul 27 15:47:08 bastion sshd[22728]: debug: session_new: session 0
Jul 27 15:47:08 bastion sshd[22728]: debug: session_open: channel 0
Jul 27 15:47:08 bastion sshd[22728]: debug: session_open: session 0: link with channel 0
Jul 27 15:47:08 bastion sshd[22728]: debug: confirm session
Jul 27 15:47:08 bastion sshd[22728]: debug: callback start
Jul 27 15:47:08 bastion sshd[22728]: debug: session_by_channel: session 0 channel 0
Jul 27 15:47:08 bastion sshd[22728]: debug: session_input_channel_req: session 0 
channel 0 request pty-req reply 0
Jul 27 15:47:08 bastion sshd[22728]: debug: session_pty_req: session 0 alloc /dev/ttyp3
Jul 27 15:47:08 bastion sshd[22728]: debug: callback done
Jul 27 15:47:08 bastion sshd[22728]: debug: callback start
Jul 27 15:47:08 bastion sshd[22728]: debug: session_by_channel: session 0 channel 0
Jul 27 15:47:08 bastion sshd[22728]: debug: session_input_channel_req: session 0 
channel 0 request shell reply 0
Jul 27 15:47:08 bastion sshd[22728]: debug: fd 6 setting O_NONBLOCK
Jul 27 15:47:08 bastion sshd[22733]: debug: Setting controlling tty using TIOCSCTTY.
Jul 27 15:47:08 bastion sshd[22728]: debug: callback done
Jul 27 15:47:09 bastion sshd[22671]: debug: tvp!=NULL kid 0 mili 10
Jul 27 15:47:10 bastion last message repeated 8 times
Jul 27 15:47:12 bastion sshd[22728]: Connection closed by remote host.
Jul 27 15:47:12 bastion sshd[22728]: debug: Calling cleanup 0x8052070(0x80ce7a4)
Jul 27 15:47:12 bastion sshd[22728]: debug: pty_cleanup_proc: /dev/ttyp3
Jul 27 15:47:12 bastion sshd[22728]: debug: Calling cleanup 0x8058200(0x0)
Jul 27 15:47:12 bastion sshd[22728]: debug: Calling cleanup 0x805dc70(0x0)
Jul 27 15:47:13 bastion sshd[22671]: debug: tvp!=NULL kid 0 mili 10

---------------end of debuglog here--------------------------


Reply via email to