Tuesday 28 July 2009

Automating ssh logins

I found this cool technique to automate ssh logins from
http://www.debian-administration.org/articles/152

First create a key pair

username@host:~$ ssh-keygen -t rsa

Then copy the generated key to the remote host machine.

ssh-copy-id -i ~/.ssh/id_rsa.pub username@remote-host