Passwordless SSH and SCP
Remove or backup existing keys.
$ chmod 700 ~/.ssh
Generate a ssh key pair. For more instruction following this link https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
Copy the id_rsa.pub to the server using scp command
Create a directory
Copy pub key to authorized key list
Change the permission to 600
Now you should be able to ssh and scp without entering password. You can reuse the public key to more than one server to setup passwordless SSH. Sharing public key on multiple server does not increase security risk. Make sure that you DO NOT share the private key (id_rsa) to keep it safe.