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 www.hongchangfirst.com [192.168.43.83] Port 22.
Debug1:connect to address 192.168.43.83 Port 22:no route to host
Ssh:connect to host www.hongchangfirst.com Port 22:no route to host
This is usually due to the fact that the IP is unreachable.
Original: http://blog.csdn.net/hongchangfirst/article/details/37529507
Author: Hongchangfirst
Hongchangfirst's homepage: http://blog.csdn.net/hongchangfirst
SSH appears connection timeout