ssh public-key authentication

Categories: BSD, Linux

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 […]