Troubleshooting of SSH server logon failures

Source: Internet
Author: User
Tags ssh server
Troubleshooting of SSH server logon failures-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Analysis and troubleshooting: When the ssh client logs on to the server using the port and IP address, we should follow the steps below when we encounter the problem that such services cannot be linked.

1. First, determine whether the service is normal before a problem occurs? Can I log on to a server with the same network segment? (Eliminate network problems, Check network devices or contact relevant Departments)

2. Can I ping the local loopback address? (Exclude local hardware issues)

3. Have the configuration file been changed? View logs and history operation records in the/var/log directory (exclude human error)

4. Exclude the preceding assumptions and then check the service processes and ports of the linux system. Two commands are used to judge:

Ps? Ef | grep sshd and netstat? Anp | grep sshd;

Ps? Ef | grep sshd displays "sshd" service process records

Netstat? Anp | grep sshd displays the port used by sshd.

The reason for this check is that many people may forget to modify the port value of/etc/ssh/sshd_config, so that they still use port 22 to log on when using the ssh tool, resulting in login failure.

5. If no service process or port is found, use service sshd restart to restart the service (the problem will be solved at this time)

6. If the service fails to be started, follow the error prompt and/var/log/messages logs to troubleshoot the problem.

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.