Use the third-party remote connection tool ssh to connect to the virtual machine created by vagrant
Use the third-party remote connection tool ssh to connect to the virtual machine created by vagrant
The default password forvagrant is vagrant.
Password authentication is turned off by default. Enter the virtual machine and turn on password authentication.
1. Use the command vi /etc/ssh/sshd_config to enter the configuration. Be sure to switch to the root user. Root has permissions for this configuration.
2. Find PasswordAuthentication, which defaults to no, and change it to yes.
3. Restart the virtual machine
4. Pay attention to the connection information, especially the default port is 2222