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/
If your authorized_keys already exist just append the public key to the end.


    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.