我无法从 ubuntu 16.04 使用 ssh 连接到服务器。我也无法在线访问该地址。
当我尝试通过终端连接时出现以下错误
ssh:连接到主机主机名端口 22:连接超时
我可以使用以下命令 ping 主机名ping hostname
,以下是相同的输出
PING hostname (ipaddress) 56(84) bytes of data.
64 bytes from ipaddress: icmp_seq=1 ttl=63 time=0.689 ms
64 bytes from ipaddress: icmp_seq=2 ttl=63 time=0.689 ms
64 bytes from ipaddress: icmp_seq=3 ttl=63 time=0.630 ms
64 bytes from ipaddress: icmp_seq=4 ttl=63 time=0.682 ms
64 bytes from ipaddress: icmp_seq=5 ttl=63 time=0.671 ms
64 bytes from ipaddress: icmp_seq=6 ttl=63 time=0.707 ms
^C
--- hostname ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5086ms
rtt min/avg/max/mdev = 0.630/0.678/0.707/0.024 ms
下面粘贴的输出nmap -v hostname -Pn -p 22
。
Starting Nmap 7.01 ( https://nmap.org ) at 2019-09-17 10:44 IST
Initiating Parallel DNS resolution of 1 host. at 10:44
Completed Parallel DNS resolution of 1 host. at 10:44, 0.00s elapsed
Initiating Connect Scan at 10:44
Scanning hostname (ipaddress) [1 port]
Completed Connect Scan at 10:44, 2.00s elapsed (1 total ports)
Nmap scan report for hostname (ipaddress)
Host is up.
PORT STATE SERVICE
22/tcp filtered ssh
Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 2.07 seconds