The Linux host configures ssh keyless login, the specific steps are as follows:
1. Use to ls -a
find the .ssh file, open the file, and open it if there is no configuration to ensure that the directory is empty;
2. Execute the command ssh-keygen -t rsa
to generate the public key and private key ; Enter three times during the command execution process, id_rsa->> private key, id_rsa.pub->> public key;
3. Execute ssh-copy-id 远程登录的主机名或ip地址
, in this process, you need to enter the password for remote login to the host;
4. On the current host You will no longer need to enter the password to log in to the remote host (the test part in the figure above), but you still need to enter the password to log in to the current host from the remote host (below).
SSH keyless login
Guess you like
Origin blog.csdn.net/xl132598798/article/details/105513039
Recommended
Ranking