On Thursday 18 December 2008, Eric Martin wrote:
> Mick wrote:

> > I have now also tried to generate a key pair on the server, move the
> > private key over to the client and then try to login - still no result! 
> > :-(
> >
> > It has to be some sort of incompatibility between the two versions of
> > OpenSSH. Don't know what else to assume with this problem.
>
> It definitely looks like the server doesn't like your private key.  Did
> you remember to update(read: add) the public key on the server? 

Oops!  I forgot about this thread - sorry.  I finally found out what was 
causing it:

I had an entry for a previous server on the same IP address in the 
~/.ssh/config file on the client and had disabled publickey to make the login 
faster.  On that occasion the server was a router and it did not offer 
publickey authentication.  After a couple of years I had forgotten all about 
it . . . 

> The only time I have a problem w/pub/private keys is when
> I create them on a windows box and try to export it to ssh.  The other
> way around always works for me.

The MSWindows generated keys will work, either from PuTTY or Cygwin, but you 
have to be careful with hard returns at the end of lines (CR/LF).  Use 
Notepad++ to paste your key in and you should find that it works fine.
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to