SSH Keys –
- Generate a key on your local machine. Just agree to all of the prompts:
ssh-keygen- Find the .ssh directory in the home folder of the server you want to log in to. In it find/create the
authorized_keys2file in this directory.
- Copy the created key from your local computers home folder to the servers
authorized_keys2file. The generated key is found in~/.ssh/id_rsa.pub. Copy the entire line ending with your servers address from this file.
- Make sure that the servers
authorized_keys2file is set to read only local. Chmod to 600 to be sure.
- Log out of the server, log back in and check if it worked!