SSH login without password

Run on your machine

ssh-keygen -t rsa

copy key from

cat ~/.ssh/

Go to remote host and paste just copied to


Depending on your version of SSH you might also have to do the following changes:

  • Put the public key in .ssh/authorized_keys2
  • Change the permissions of .ssh to 700
  • Change the permissions of .ssh/authorized_keys2 to 640


Similar Posts:

Leave a Reply

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