http://www.osxserver.ch/showthread/t-1719.html
1) Perform login without a password promt from "remotehost" to "thishost".
- open a shell
- ssh remotehost -l user
- cd .ssh
- ls
-> if id_dsa, id_rsa etc exists,
skip the next two steps!
- ssh-keygen -t rsa
- ssh-keygen -t dsa
- scp *.pub user@thishost:~/
- exit
- cat id_rsa.pub >> .ssh/authorized_keys
- cat id_dsa.pub >> .ssh/authorized_keys
- rm id_rsa.pub id_dsa.pub
You should now be able to connect from "remotehost" to "thishost"
without a password promt.
2) Perform login without a password promt from "thishost" to "remotehost".
- open a shell
- cd .ssh
- ls
-> if id_dsa, id_rsa etc exists,
skip the next two steps!
- ssh-keygen -t rsa
- ssh-keygen -t dsa
- scp *.pub user@remotehost:~/
- ssh remotehost -l user
- cat id_rsa.pub >> .ssh/authorized_keys
- cat id_dsa.pub >> .ssh/authorized_keys
- rm id_rsa.pub id_dsa.pub
- exit
You should now be able to connect from "thishost" to "remotehost"
without a password promt.