"Note" Virtual machine with Xshell login error "SSH server rejected password" solution

Source: Internet
Author: User
Tags ssh server

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.