Using a putty rsa key on a linux install?
-
So here is my Problem:
I generated a keypair with putty on windows.
I can connect to my server and everything works fine.
Now I wanted to use the private key to authenticate me from my ubuntu installation.This doesn't work correctly. When I try to authenticate myself with "ssh -p 22 username@host" I'm stuck on the Passphrase.
I'm 100% sure that i entered the correct passphrase.
I tried it again with a putty (emulated with wine) and it works fine.Is there a way to make the key usable with ssh too or am I stuck to putty?
Posted 2 years ago # -
hey Kugelfisch .. nice to see you about.
well, you can do this, converting the Windows key to a Linux ssh format but it's a bit fiddly and, besides, this is easier and equally secure:-
Setup openSSH for Linux-to-Linux
just copy the new Linux public key to the same authorized key file in which the current (Windoze) key lives, ie:-
/home/username/.ssh/authorized_keys
.. but be careful with that file, don't delete it or anything, just add the new key into it on a new line, using nano or whatever
so you'll have 2 keys, one for putty windows and the other for linux.
by the way, you don't need to specify the default port 22 in your login command, only to specify any other .. then again, you should change that port anyway if it's really the one you use, hackers love it.
Posted 2 years ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
