ssh public-key authentication

I forgot it again, so…
First of all you have to create the keys:
ssh-keygen -t rsa -b 2048
You can leave the password field blank.
Copy your fresh public key (.pub) in your remote server/machine, renaming it in “authorized_keys“:
scp ~/.ssh/id_rsa.pub remotemachine.it:/home/username/.ssh/authorized_keys
If your authorized_keys already exist just append the public key to the end.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *