为什么ssh连接在22端口上不起作用?

时间:2019-12-22 21:32:10

标签: linux ubuntu ssh

OS Ubuntu 19.10 您好,请尝试通过SSH连接到DigitalOcean Droplet,但是几分钟后,该命令将完成而无需登录。

ssh root@128.199.166.104

Ping可以:

ping 128.199.166.104
PING 128.199.166.104 (128.199.166.104) 56(84) bytes of data.
64 bytes from 128.199.166.104: icmp_seq=1 ttl=53 time=247 ms
...
64 bytes from 128.199.166.104: icmp_seq=7 ttl=53 time=245 ms
^C
--- 128.199.166.104 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6010ms
rtt min/avg/max/mdev = 244.493/245.426/248.116/1.335 ms

状态ssh id正常:

systemctl status ssh
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2019-12-23 00:10:31 MSK; 12min ago

通过SSH将Github连接到端口22的类似问题有助于更改配置。

cat ~/.ssh/config 
Host github.com
 Hostname ssh.github.com
 Port 443

我需要使用DigitalOcean做什么,我的22端口有什么问题?

0 个答案:

没有答案