Add SSH key to authorized_keys

Add SSH key to authorized_keys

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 [email protected]

Connect to the server without a password πŸ”₯

ssh [email protected]

Author: Mitchel Pawirodinomo

Software Engineer | Pentester | FX Trader

Leave a Reply

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