#Password-less SSH
Generate keys on local machine:
$ ssh-keygen
Create ~/.ssh
directory on remote machine.
Copy local ~/.ssh/id_rsa.pub
to remote ~/.ssh/authorized_keys
:
Method A:
$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@host
Method B:
$ cat ~/.ssh/id_rsa.pub | ssh user@host 'cat >> ~/.ssh/authorized_keys'