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

 

posted on 2013-04-07 13:13  androidme  阅读(190)  评论(0编辑  收藏  举报

导航