LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   How can I setup SSH private key authentication? (http://www.linuxquestions.org/questions/linux-server-73/how-can-i-setup-ssh-private-key-authentication-804850/)

davidlu766 04-28-2010 08:27 PM

How can I setup SSH private key authentication?
 
I heard there's a more secure way to log onto Linux using SSH, I think it's called SSH private key authentication. How does it work? Is it really more secure than typing in passwords? And how do I set it up?

dxqcanada 04-28-2010 08:43 PM

Public Key exchange authentication uses a Private and Public key.
The SSH server has the User's public key stored.
The SSH client has the User's private key. Only this User has the private key.

When the SSH client connects it decrypts the authentication token with the private key and responds with an answer ... as only the User with the Private key can do this, it ensures secure authentication.

You will find many pages if you google.

Hangdog42 04-29-2010 08:18 AM

Including an old, but still relevant tutorial, right here at LQ.

choogendyk 04-29-2010 08:32 AM

I've been using the step by step howto here http://sial.org/howto/openssh/publickey-auth/ for reference for years. They have a number of other similar howtos related to ssl, ssh, etc. Very knowledgeable, clear and to the point.


All times are GMT -5. The time now is 04:58 PM.