Do you want to login other's host without input password?To do as following steps: (Linux to Linux)
First:
[root@host127 ~]# ssh-keygen -t rsa
this command will generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa
Your public key has been saved in /root/.ssh/id_rsa.pub