SSH login without password

by Adrian Mejia in January 19, 2012

If you want to login to a remote server using SSH and don't have to type the password again and again, here is a little trick

$ cat ~/.ssh/id_rsa.pub | ssh <user>@<server.domain> 'cat >> .ssh/authorized_keys'

After you run this and enter your password (for the last time), you can login to your server just typing:

$ ssh <user>@<server.domain>

You are all set.

Tags: ubuntu, linux, ssh, cli, command line

Add a new comment