操作系统 Ubuntu 19.10 您好,尝试通过 SSH 连接到 DigitalOcean Droplet,但几分钟后命令将在没有日志的情况下完成。
ssh [email protected]
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 端口出了什么问题?