Allan Bruce <(E-Mail Removed)> wrote:
>
> I think I have it requiring a key, when I try from putty it says
>
> login as: allan
> Sent username "allan"
> Trying public key authentication.
> Key is of wrong type (PuTTY SSH2 private key)
> allan@kes's password:
>
> It now wont let me in with just the password which is good ( I get "Access
> denied"). I think the key needs to be converted. I tried
> ssh-keygen -i > kes_private.openssh
> and it looks as though it worked but still get the message warning of wrong
> type. Do I need to change the key on the client side aswell? Or what do I
> have to do to get it working?
The keys must be in the correct format and location. You generate a key
pair on the client machine and then upload the public key to the server
to which you wish to connect. The private key remains on the client and
should never be uploaded anywhere. openssh expects keys in its format,
and I believe putty has an option to convert a putty public key to
openssh's format. The openssh ssh-keygen can clearly convert formats,
but I don't know if it will convert a putty key as I've never tried.
There are also issues with configuring the ssh clients and servers to
use the correct key, but that's a lot of information covering many
possibilities and is best found in a ssh howto or the ssh manpages.
For openssh, you put your public keys (one per line) into
~/.ssh/authorized_keys on the server.
--
Jeremy A. Gray
(E-Mail Removed)
"Remember the Pueblo." -- the Fourth Law of Marvin