Setup: Create the ssh-key.
Create the ssh-key with the following command. Hit enter; pick a good passphrase.
ssh-keygen -t rsaCopy the resulting public key to the remote machine:
scp ~/.ssh/id_rsa.pub remote.server.com:~/.ssh/authorized_keysEnter you password.
Using ssh-agent.
The following command adds your new ssh key to your 'keyring'. You will be prompted for the passphrase.
ssh-add[If the above command fails, then ssh-agent is not running. Start it with eval `ssh-agent`.]
Now you won't be prompted for the passphrase again until the next time you log in. You can ssh into the remote machine using ssh as usual without being prompted for a password.