SSH password-free logon and SSH password-based Logon
Machine A: 192.168.1.100 (production machine) machine B: 192.168.1.123 (Management machine) Requirement: log on to the production machine from the management machine without A password for Management 1. generate a public key/private key pair root @ B # ssh-keygen-t rsa-P 'key management password' under machine B. copy the generated id_rsa.pub to the root @ B # scp under host. ssh/id_rsa.pub Co., root@192.168.1.100:/root/id_rsa.pub 3. log on to machine A and input the copied id_rsa.pub file. root @ A # cd in the ssh/authorized_keys file. ssh/root @ A # touch authorized_keysroot @ A # chmod 600 authorized_keysroot @ A # cat/root/id_rsa.pub> authorized_keys 4. test to exit remote production machine Server A. log on to the management machine B through SSH to see if there is no password. Note: If the password entered when the key is generated in step 1 is blank, No Logon prompt is prompted. If the key management password is available, you need to enter the password for remote management. If you need to reverse, you can achieve password-free login, you can also use the same method and then perform the operation steps on another machine. The above section is just about implementing Remote Password-free login for linux. In windows, remote login via putty is not successfully tested. If the test is successful, please inform me of the method, thank you!