Loop
September 15th, 2003, 23:41
Heyas,

Have a small problem with PuTTY and FreeBSD'd OpenSSH server:

I have PuTTY set up to use a key, which was working before I had to rebuild the system. since it was a ssh1 key, I thought I would update and change to a ssh2 key.

Generated the key and converted it for use in PuTTY, but now when I try to use that key to authenticate, this happens!!!

[code:1:1871a0c7b7]login as: loop
Authenticating with public key "loop@number6" from agent
loop@number6's password:[/code:1:1871a0c7b7]

Why would my server ask for a password as well as accepting the key?

Here's the log as PuTTY sees it:

[code:1:1871a0c7b7]2003-09-16 12:38:34 Server version: SSH-1.99-OpenSSH_3.5p1 FreeBSD-20030201
2003-09-16 12:38:34 We claim version: SSH-2.0-PuTTY-Snapshot-2003-08-18
2003-09-16 12:38:34 Using SSH protocol version 2
2003-09-16 12:38:34 Doing Diffie-Hellman group exchange
2003-09-16 12:38:35 Doing Diffie-Hellman key exchange
2003-09-16 12:38:37 Host key fingerprint is:
2003-09-16 12:38:37 ssh-dss 1024 87:f8:08:c0:5d:40:8e:66:fa:c4:ab:16:b3:e0:8e:49
2003-09-16 12:38:37 Initialised AES-256 client->server encryption
2003-09-16 12:38:37 Initialised AES-256 server->client encryption
2003-09-16 12:38:37 Initialised zlib (RFC1950) compression
2003-09-16 12:38:37 Initialised zlib (RFC1950) decompression
2003-09-16 12:38:42 Reading private key file "loop.ppk"
2003-09-16 12:39:57 Pageant is running. Requesting keys.
2003-09-16 12:39:57 Pageant has 1 SSH2 keys
2003-09-16 12:39:57 Trying Pageant key #0
2003-09-16 12:39:57 This key matches configured key file
2003-09-16 12:39:58 Sending Pageant's response
2003-09-16 12:40:26 Sent password
2003-09-16 12:40:27 Access granted
2003-09-16 12:40:27 Opened channel for session
[/code:1:1871a0c7b7]

Vile
October 4th, 2003, 04:38
Where is your key on the ssh server? Should be in ~/.ssh/authorized_keys2

If your key auth fails, it will fallback on password auth.

Loop
October 4th, 2003, 08:55
Not according to the manpage for sshd(8)

This is the confusing bit:
[code:1:b7505e8b1d]2003-09-16 12:38:42 Reading private key file "loop.ppk"
2003-09-16 12:39:57 Pageant is running. Requesting keys.
2003-09-16 12:39:57 Pageant has 1 SSH2 keys
2003-09-16 12:39:57 Trying Pageant key #0
2003-09-16 12:39:57 This key matches configured key file
2003-09-16 12:39:58 Sending Pageant's response
[/code:1:b7505e8b1d]

Pageant (the auth agent) gets a key request, which it answers with a valid key.

I'm a bit lost on this ... it never did this before the HD blew up, and of course, no backups to speak of :?