After the local installation of VMware Workstation, the creation of a virtual machine, the first can be logged in with Xshell, a few days later, restart the computer and virtual machine, found unable to login, have not entered the password has the following error message
This time to start troubleshooting reasons, because you can ping, so do not have to check the firewall theory, but do not rule out firewall settings can be out of the non-progressive state:
1. Check if the virtual machine SSH service is turned on
Service sshd status, if it is not turned on, perform services sshd start;
2, check the/etc/ssh/ssh_config file, whether the SSH service port is the 22,protocol protocol version is 2 (generally 2 security.) 1 is not secure for SSH 1, may prohibit login);
3. Check if the virtual machine firewall is turned on (SuSEfirewall2 Status/start)
SuSE's default firewall is set to prohibit all foreign connections. If you want to open a port, you have to modify the firewall settings to open this port. This article describes how to modify the firewall settings of SuSE to open a specified port:
Linux ~ # VI/ETC/SYSCONFIG/SUSEFIREWALL2
#TCP端口的情况:
FW_SERVICES_EXT_TCP = "6000"
#UDP端口的情况:
FW_SERVICES_EXT_UDP = "177"
Firewall settings are in effect:
linux:~ # rcSUSEfirewall2 Restart
linux:~ #/sbin/susefirewall2 Start
Other configuration methods:
fw_services_ext_tcp= "SSH" fw_services_ext_tcp= "ftp telnet 512:514" fw_services_ext_udp= "631 400:405"
4 , select "Keyboard Interactive (I)" In the login, enter the correct password in the popup password box to login.
"Note" Virtual machine with Xshell login error "SSH server rejected password" solution