The authentication is per user base so the public key goes in the intended user’s home. Now that you have made sure of the above four requirements, let’s see how to use public key authentication. You should know the IP address of the server.You should have a user account and password on the server.You should have generated public and private ssh keys (just use the command ssh-keygen -t rsa).Your destination server should have ssh enabled.This quick tutorial shows you two methods to add a public SSH key to the server.īefore you see that, let’s be clear about what you should already have: Now you want to upload your public key to the authorized keys of the server so that you can access it without typing your account password all the time. You have generated ssh keys on your personal computer. ![]() ![]() I believe you understand the basic SSH concept. Here are two methods to copy the public ssh key to the server. Public key authentication allows you to access a server via SSH without password.
0 Comments
Leave a Reply. |