generate public keys and keys on client side
Execute on client side command line
ssh-keygen-t-P‘‘
Then hit enter to generate both the public key and the key
Add the client's public key to the Server-side public key file for authentication
The steps are as follows:
1. Copy client-side public key to Server side
scp scp ~/.ssh/id_rsa.pub gino@172.16.60.134:~/.ssh/
2. Copy the public key contents into the new Authorized_keys file (This command is run on the Server side)
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Now use client side to connect Server side can login without password.
This article refers to:
Http://jingyan.baidu.com/article/60ccbceb02bd4264cab197b9.html
Add:
When SSH generates ID_RSA id_rsa.pub, the connection server is reported
Agent admitted failure to sign using the key
This error
Execute the command under the current user
ssh-add
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Linux ssh password-free login