SSH appears connection timeout

Source: Internet
Author: User

Sometimes ssh to a machine, waiting for a while, appear connection timeout, but it is not clear what is wrong.

We can have a few good ways to determine where the problem is.

First, ping your machine first, if you can not ping, consider whether the network is broken. However, if you can not ping, it is possible that the machine set the corresponding non-reply ICMP ping message, etc., nor can it be used as a basis for judging.

Second, if you use the domain name, can be replaced by IP, try IP can ping, if the IP may ping, then is the problem of DNS.

Third, you can use SSH to debug, plus-v option, to see which step to take, such as appear:

OpenSSH, OpenSSL 1.0.1 2012
Debug1:reading Configuration Data/etc/ssh/ssh_config
DEBUG1:/etc/ssh/ssh_config line 19:applying options for *
Debug1:connecting to [] Port 22.
Debug1:connect to address Port 22:no route to host
Ssh:connect to host Port 22:no route to host

This is usually due to the fact that the IP is unreachable.


Author: Hongchangfirst

Hongchangfirst's homepage:

SSH appears connection timeout

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: 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.