Use a public/private key pair to avoid having to type in your password every time you open up a ssh session:
1- Generate a keypair, install the public key on the server and ‘authorize’ it.
2- Copy the private key(s) to the ‘~/.ssh’ directory on your local machine.
3- Set the permission of your private key files to no access for group and world. (600)
brian@Mint13desktop ~/.ssh $ ls -l -rw------- 1 brian brian 1743 Dec 19 20:40 id_dsa -rw------- 1 brian brian 1768 Dec 19 21:28 known_hosts -rw------- 1 brian brian 1424 Jun 1 2013 known_hosts.old
4- Edit ‘/etc/ssh/ssh_config’ with a line starting with ‘IdentityFile’ for each of your private keys
IdentityFile ~/.ssh/id_dsa
5- connect without having to type a password!
brian@Mint13desktop ~ $ ssh username@briangallimore.com Last login: Thu Dec 19 20:28:15 2013 from ****.net username@briangallimore.com [~]#
(local computer is LinuxMint 13, remote is Linux web host)