我正在使用 Oracle 云 VPS 服务,但 VPS 有一个(对我来说)奇怪的问题。我创建了一个 ubuntu 实例,我创建了一个带密码的新用户,一切正常。一段时间后(可能 1-2 小时)SSH 停止工作。然后我重新启动 VM 实例,一切再次正常运转 1-2 小时,然后 SSH 再次停止工作。仪表板实例正常运行,一切似乎正常,但我无法连接。
ssh -vvv 用户名@ip 给出如下信息:
OpenSSH_9.0p1 Debian-1, OpenSSL 1.1.1o 3 May 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 130.61.xxx.xxx is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/username/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/username/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 130.61.xxx.xxx [130.61.xxx.xxx] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10