Complete password field scp command on linux

http://stackoverflow.com/questions/3457719/complete-password-field-scp-command-on-linux

http://www.uini.net/?p=356

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
原文地址:https://www.cnblogs.com/androidme/p/3003877.html