linux configure ssh keyless Login

https://blog.csdn.net/xiaoyi23000/article/details/80597516

1, Run ssh-keygen -t rsa, generating public and private keys

2, will .ssh / generate public and private keys for the current user's home directory,

3, execution ssh-copy-id -i remote host to transfer files to the public, the password corresponding to the remote host. Command is as follows:
SSH-Copy-ID -i /root/.ssh/id_rsa.pub [email protected]

4, this time to log in to perform remote host ssh [email protected], will not re-enter the password:

Guess you like

Origin www.cnblogs.com/a1304908180/p/11274043.html