SSH – Remember password

Ok, so you don’t remember the password


ssh-keygen -t rsa

After the key has been created


ssh user@domain.com mkdir -p .ssh
cat ~/.ssh/id_rsa.pub | ssh user@domain.com 'cat >> .ssh/authorized_keys'

Leave a Reply

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