Verify ssh with security key

1. The need to open two virtual machines, and to ensure that two virtual machines can ping;

  Local Host IP: 192.168.8.120

  Remote Host IP: 192.168.8.100

2. The key pair generated in the local host, enter the command "ssh-keygen"

 

 3. sent to the remote host

 

 4. Enter "vi etc / ssh / sshd_config", sshd_config open inside the parameter file modification

5. Save, enter the command "systemctl restart sshd", to restart sshd service

 

6. Enter the remote host command "ssh 192.168.8.120", as shown below, it means success.

Guess you like

Origin www.cnblogs.com/meng-yu37/p/11845704.html