- Generate the public and the private keys on local machine (give a name if you need)
ssh-keygen
-
Copy the content for .pub file
-
Create a file under $USER/.ssh/authorized_keys on the server if it does not exists yet
-
Paste the content of the .pub file on the authorized_keys file, save and close the file