SSH and RSYNC without password

Tried of typing your password every time you use ssh or rsync? If so, you should create a local ssh key for your computer and append your key to the remote computers you usually login to.

1. Generate your ssh key on your local computer:

local> ssh-keygen -t rsa

2. If prompted for file name to store your key, select the default (id_rsa).

3. Do not enter a password when asked. This will generate a password-less key and a public key. If you have   selected the default names, then those will be: id_rsa (password-less key) and id_rsa.pub (public key)

4. Copy the public key (id_rsa.pub) to the machine you want to ssh/rsync to. Avoid overwriting your RSA key at your remote host by renaming it first.

local> cp id_rsa.pub yourlocal_key.pub

local> scp yourlocal_key.pub you@remote-machine:

remote> cat yourlocal_key.pub >> .ssh/authorized_keys

remote> rm yourlocal_key.pub (cleaning up)

And now your remote computer will accept a ssh login without prompting you for a password.