Passwordless ssh


Setting up passwordless ssh between machines, to use ssh from within a script, to do things like backing up using rsync …etc.

The following is an excellent link on this,
http://www.linuxproblem.org/art_9.html


Password less for Computer from Panini:-

$ssh user@host mkdir -p .ssh
$user@host's password: 

Finally append a’s new public key to b@B:.ssh/authorized_keys and enter b’s password one last time:

$cat .ssh/id_rsa.pub | ssh root@(Host) -p 2200 'cat >> .ssh/authorized_keys'
$user@Host's password: 

From now on you can log into B as b from A as a without password:

$ssh user@host
Sidebar