http://stackoverflow.com/questions/3457719/complete-password-field-scp-command-on-linux
You can generate a pair of RSA/DSA keys (public and private). In your terminal:
$ ssh-keygen
It will generate a pair of files:
- Private key:
.ssh/id_dsa
- Public key:
.ssh/id_dsa.pub
Then, if you have access to remote host, you can add your public key to .ssh/authorized_keys
file. In your remote host, copy the public key and use the following command:
cat id_dsa.pub >>.ssh/authorized_keys