Iii. Ssh password-less (key verification) login configurationConfigure host a password-free login to host B method 1) 1. generate an SSH-keygen-t rsa key pair on host a, which is stored in. generate a key file in the SSH directory. copy the public key of host a to host B: SCP id_rsa.pub host_name: file_dir 3. add the public key of host a to the authorization list of host B. SSH/authorized_keys (manually created if no one exists): CAT id_rsa.pub> authorized_keys 4. the authorized_keys permission of the authorization list must be 600, and the CHMOD 600 authorized_keys method 2) # Go To The my home directory Cd ~ /. After executing the ssh-keygen-t rsa (four carriage returns) command, two files, id_rsa (Private Key) and id_rsa.pub (Public Key), are generated) copy the public key to the machine to be logged on without Logon: ssh-copy-ID localhost: an error is returned after the public key is added to the server.
sign_and_send_pubkey: signing failed: agent refused operation
At this time, we only need to execute
eval
"$(ssh-agent -s)"
ssh-add
Logon Using SSH key verification