SSH is a safer software than vnc. Here we will test two methods of network authentication for ssh: password verification and certificate verification. Considering the security of the server, it is generally better to use the certificate method, so you do not need to tell the user the account and password of the server. In this test, I use the host machine as the server and the virtual machine as the client. 1. The server uses password verification. 1. Modify the server configuration file (vim/etc/ssh/sshd_config). a. Change the authentication method.
SSH is a safer software than vnc. Here we will test two methods of network authentication for ssh: password verification and certificate verification. Considering the security of the server, it is generally better to use the certificate method, so you do not need to tell the user the account and password of the server.
In this test, I use the host machine as the server and the virtual machine as the client.
1. Password verification for the server
1. Modify the server configuration file (vim/etc/ssh/sshd_config)
A. Change the authentication method to "password verification"; PasswordAuthentication yes
B. restart the ssh service; service sshd restart
2. Client Login (ssh root@192.168.0.21)
You can see that you can log on to the server as long as you have the account and password on the server side. OK, log on. The default password is three times. Note that the hostname of the server is desktop21.example.com, server21.example.com on the client, and "be careful with virus infection" is modified in/etc/motd.
Then exit to test the certificate login method.