"Linux" resolves SSH service deny password-blog channel-csdn.net

Source: Internet
Author: User

Xshell connection to Linux server prompt password error.
1. Check if the virtual machine SSH service is turned on:
Service sshd status, if it is not turned on, perform the service sshd start, or restart the service via service sshd restart;

2. Check the/etc/ssh/ssh_config file:
Whether the SSH service port is a 22,protocol protocol version of 2 (typically 2 secure.) 1 is not secure for SSH 1, may prohibit login);
3, check/etc/ssh/sshd_config:
Will
# Authentication:
Logingracetime 120
Permitrootlogin without passwd
Strictmodes Yes
Change into
# Authentication:
Logingracetime 120
Permitrootlogin Yes
Strictmodes Yes
Or
When the SSH configuration is commented out, the comments are released.
Restarting a virtual machine



Null

"Linux" resolves SSH service deny password-blog channel-csdn.net

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.