Linuxssh password free login

  
        Generate the public key and key on the client side. Execute ssh-keygen -t rsa -P '' from the client command line. Then press Enter to generate the public key and key. Add the client's public key to the server for authentication. The steps in the public key file are as follows: 1. Copy the client public key to the server side scp scp ~/.ssh/id_rsa.pub [email protected]:~/.ssh/2. Copy the public key content to the new one. In the authorized_keys file (this command is run on the server side) cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys Now connect the server side with the client to log in without a password. This article refers to: http://jingyan.baidu.com/article/60ccbceb02bd4264cab197b9.html Supplement: When ssh generates id_rsa id_rsa.pub, the connection server reports Agent admitted failure to sign using the key. This error is executed under the current user ssh -add
Copyright © Windows knowledge All Rights Reserved