Linux
If any of the things on this page doesn't work or if you have any queries, do send me an email with the subject linux.
Login into a remote host using ssh without a password using RSA encryption key
Create a public and private key on your local-host using ssh-keygen.
geet@local:~$ ssh-keygen
A public and private key are generated at this point of time.
When it asks you to enter a passphrase you can press the enter key to keep it NULL. Otherwise you can have a passphrase which you would need to enter everytime you do ssh.
Note the folder in which the public key has been saved. Let us say it was saved in ~/geet/.ssh/id_rsa.pub. (Ignore the dot at the end of pub. I don't know why they put it there. It is confusing.)
Now you have to copy the public key into your remote machine using ssh-copy-id.
geet@local:~$ ssh-copy-id -i ~/geet/.ssh/id_rsa.pub geet@remote
At this point you will be asked to enter the password for your remote host one last time.
Now login to your remote host.
geet@local:~$ ssh geet@remote
If all went well you will be logged in without the password.