Linux ssh no password login

  
 

1, architecture 192.168.0.5 login machine. 192.168.0.10 is logged in. 2, the implementation steps (1) execute #ssh-keygen -t rsa on 192.168.0.5 all the way back to the ~/.ssh/directory to generate a pair of public and private keys id_rsa id_rsa.pub (2) put the public key id_rsa Copy .pub copy to the remote login machine #ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected] Enter the password 10Now try logging into the machine, with "ssh '[email protected]", And check in:

.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

Copyright © Windows knowledge All Rights Reserved