[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Sheflug] SSH2 keys an Putty



Hi everyone, nice to "meet" you all :)

> > > The key was generated in Putty KeyGen, as ssh2 (rsa) and the public key scp`d to the suse box.
> > > So I was assuming that SuSe didn`t like the Win32 key, however Jonathan has obviously achieved this so it can`t be impossible.

I had this problem when I had to create ssh keys a few months a go.
Don't worry about the fact I've added the full keys as these are no londer used.

It appears to be a problem with the format of the file putty creates, possibly because it's a windows file not a linux one.

---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20020906"
AAAAB3NzaC1yc2EAAAABJQAAAIEAtNhCKIOpYKTSD6OAWotzMtz+8fq92bWwXoUo
ZFxf69YA/P1EwJbEnZnM7WAtoRPXkp9q96uZmCMSLZY0X0JFAre3n8qTNehefP6b
I5atrbQME9RJYGbyeOvblfIH9UfoA2X3YcDz1VapGBmu0eol47jdc0XBSFfG8ZDB
FmNYuC8=
---- END SSH2 PUBLIC KEY ----

In the end I had to create a key file on the linux box using ssh-keygen.

Then use that as a template and copy the key from the putty file to match the format of the one created by ssh-keygen.

ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAtNhCKIOpYKTSD6OAWotzMtz+8fq92bWwXoUoZFxf69YA/P1EwJbEnZnM7WAtoRPXkp9q96uZmCMSLZY0X0JFAre3n8qTNehefP6bI5atrbQME9RJYGbyeOvblfIH9UfoA2X3YcDz1VapGBmu0eol47jdc0XBSFfG8ZDBFmNYuC8= root [at] rcl-dws-fw1

> > Unlikely, but is it possible your text editor has line wrapping in your authorized_keys file? (i.e. errant return codes)

I had to use linux to do the editing to stop problems with line wrapping and CR's etc

Hope this helps

Brian
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.