Linux ssh password-free login, ssh password login
Generate public keys and keys on the client
Execute
Ssh-keygen-t rsa-p''
Press enter to generate both the public key and the key.
Add the public key of the client to the public key file of the Server for authentication.
The procedure is as follows:
1. Copy the client Public Key to the Server
Scp ~ /. Ssh/id_rsa.pub gino@172.16.60.134 :~ /. Ssh/
2. Copy the public key content to the new authorized_keys file (this command is run on the Server)
Cat ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keys
Now you can use the client to connect to the Server without a password.
Reference:
Http://jingyan.baidu.com/article/60ccbceb02bd4264cab197b9.html
Supplement:
When id_rsa id_rsa.pub is generated by ssh, the connection to the server reports
Agent admitted failure to sign using the key
This error
Execute commands under the current user
Ssh-add
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.