It has been always a pain to put your server’s password every damn time. You can add your key to the authorized_keys of the server. Here’s how you do it

Generate your SSH key if you don’t have one already.

ssh-keygen -t rsa -b 2048

Copy your generated SSH key to the server
Insert the password of your server when prompted

ssh-copy-id user@server

Connect to the server without a password 🔥

ssh user@server

Leave a Reply

Your email address will not be published.

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