Re: PuTTY's public Keys do not authenticate with ssh.com server

From: bill davidsen (davidsen@tmr.com)
Date: 01/29/02


From: davidsen@tmr.com (bill davidsen)
Date: Tue, 29 Jan 2002 16:16:36 +0000 (UTC)

In article <fdfb44db.0201271621.1a31f1cb@posting.google.com>,
Alan Chandler <alan@chandlerfamily.org.uk> wrote:
| Rob Allen <moz@the-allens.net> wrote in message news:<VXeZRZDVu$R8Ewz2@fclcom.demon.co.uk>...
| > Hi,
| >
| > I have a RedHat box with ssh.com's ssh server (version 2.1.0 -
| > non-commercial)
| >
| > I've created a DSA key using puttygen and uploaded the public file to my
| > ~/.ssh directory on the RedHat box and I've altered "authorization"
| > appropriately.
| >
|
| I just discovered that if you don't have a copy of your public key on
| on the client side (I think it needs the same name as the private key with
| a .pub on the end) then publickey authentication fails. In my case so it now
| asks for normal logon password.
|
| Doesn't solve my Putty problem though - this was linux client. As far as I can
| see putty stores its public key in the private one.

The current putty seems to be able to generate rsa1, rsa or dsa keys. As
far as I can tell with ssh2 you need to generate a dsa key, then use the
OpenSSH3 ssh-keygen to turn it into a key you can use with ssh2.

There's an option to generate ssh2 keys, transfer your dsa public key to
the Linux machine and do it there. Due to security problems, I suggest
either dropping ssh1 protocol or going to OpenSHH3.0.2p1 or later.

Hope this gets you going.

-- 
bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
  Programming without software engineering is like sculpting with a chain
saw. The very talented can produce a work of art, the mediocre wind up with
a misshapen lump in a pile of rubble, and in neither case does the end
result have more than a passing resemblance to the original intent.



Relevant Pages

  • sshd public key problem
    ... connecting from Gentoo creates following lines in log: ... Apr 21 17:20:48 bender sshd: Accepted publickey for user from ... port 49395 ssh2 ...
    (comp.security.ssh)
  • Using PublicKey from a NATted client
    ... I'm trying to use Putty to connect to an OpenSSH server ... via publickey exchange (using a password to login works fine but I'm ... public key as one line into /root/.ssh/authorized_keys on the server. ...
    (comp.security.ssh)