SSH keyless login

The Linux host configures ssh keyless login, the specific steps are as follows:
1. Use to ls -afind the .ssh file, open the file, and open it if there is no configuration to ensure that the directory is empty;
ssh_1
2. Execute the command ssh-keygen -t rsato generate the public key and private key ; Enter three times during the command execution process, id_rsa->> private key, id_rsa.pub->> public key;
Generate two keys
3. Execute ssh-copy-id 远程登录的主机名或ip地址, in this process, you need to enter the password for remote login to the host;
No password test
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).
test

Published 10 original articles · Like 16 · Visitors 10,000+

Guess you like

Origin blog.csdn.net/xl132598798/article/details/105513039