To install SSH on the local machine, you can install it through sudo apt-Get Install SSH or xide. If no configuration is made, the password of the host is required to log on to the local host or remote host. Configure password-free logon as follows:
Run the ssh-keygen-t rsa command and press Enter. two files are generated under the SSH folder, one public key and one private key file, id_rsa id_rsa.pub, and then run CP ~ /. Ssh/id_rsa.pub ~ /. Ssh/authorized_keys command. After this configuration, you can log on to the local machine without a password. To log on to the remote host, you only need to send the authorized_keys file to the remote host ~ /. Ssh/directory.
The same method is used in the current SSH mode to generate a warning message.
Agent admitted failure to sign using the key
Use the ssh-add command to add the private key (Change id_rsa according to the name of the private key)
# Ssh-add ~ /. Ssh/id_rsa
You can use the SSH host name to log on without a password.