I just finished installing OpenSSH on XP Pro SP2.

While the SSHD process starts, I cannot log in to the box using ssh
(password authentication). I am trying from localhost. Here is the
output from sshd:

debug1: fd 4 clearing O_NONBLOCK
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7
debug1: inetd sockets after dupping: 3, 3
Connection from 127.0.0.1 port 3817
debug1: Client protocol version 2.0; client software version
OpenSSH_4.2
debug1: match: OpenSSH_4.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_4.2
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: client->server aes128-cbc hmac-md5 none
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: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user j99hec service ssh-connection method
none
debug1: attempt 0 failures 0
Failed none for j99hec from 127.0.0.1 port 3817 ssh2
Failed none for j99hec from 127.0.0.1 port 3817 ssh2
debug1: userauth-request for user j99hec service ssh-connection method
publickey

debug1: attempt 1 failures 1
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 400/401 (e=400/401)
seteuid 400: Permission denied
debug1: do_cleanup

The sshd-config file is plain vanilla.

Then, for fun, I tried restarting the server after killing the process
and logging in using putty (also localhost) and received different
results - I logged in OK for a moment and then was thrown off (never
got a command prompt):

debug1: sshd version OpenSSH_4.2p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
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: fd 4 clearing O_NONBLOCK
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7
debug1: inetd sockets after dupping: 3, 3
Connection from 127.0.0.1 port 3847
debug1: Client protocol version 2.0; client software version
PuTTY_Release_0.58
debug1: no match: PuTTY_Release_0.58
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_4.2
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: client->server aes256-cbc hmac-sha1 none
debug1: kex: server->client aes256-cbc hmac-sha1 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST_OLD received
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user j99hec service ssh-connection method
none
debug1: attempt 0 failures 0
Failed none for j99hec from 127.0.0.1 port 3847 ssh2
Failed none for j99hec from 127.0.0.1 port 3847 ssh2
debug1: userauth-request for user j99hec service ssh-connection method
keyboard-
interactive
debug1: attempt 1 failures 1
debug1: keyboard-interactive devs
debug1: auth2_challenge: user=j99hec devs=
debug1: kbdint_alloc: devices ''
Failed keyboard-interactive for j99hec from 127.0.0.1 port 3847 ssh2
debug1: userauth-request for user j99hec service ssh-connection method
password
debug1: attempt 2 failures 2
Accepted password for j99hec from 127.0.0.1 port 3847 ssh2
Accepted password for j99hec from 127.0.0.1 port 3847 ssh2
debug1: monitor_child_preauth: j99hec has been authenticated by
privileged proce
ss
mm_request_receive: read: Connection reset by peer
debug1: do_cleanup

I have installed OpenSSH on Solaris and Linux in the past with no
problems. It looks in the first case like a server problem, in the
second case like a client problem. I tried logging on to an external
(Linux) box with both clients - they both succeeded, which leaves me
back at looking at the server install. Do these problems look familiar
to anyone? Troubleshooting help would be greatly appreciated.

Thank you in advance, whoever responds -.


jh