我克隆了此 VM 并更改了 IP。这样做显然会清除目录~/.ssh
。此后我重新创建了它,但仍然无法通过 SSH 进入 Cent OS 7 VM。这是我尝试 Ubuntu 端点时得到的结果:
me@Ubuntu01:/mnt/$ ssh -v -C -A -X -p 222 CentOS-7-LAN
OpenSSH_8.2p1 Ubuntu-4ubuntu0.1, OpenSSL 1.1.1f 31 Mar 2020
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 *
debug1: Connecting to centos-7-lan [192.168.3.28] port 222.
debug1: connect to address 192.168.3.28 port 222: Resource temporarily unavailable
ssh: connect to host centos-7-lan port 222: Resource temporarily unavailable
VM 上的 SSH 配置有问题,但我不确定具体是什么问题。我尝试过 Putty、MobaXTerm……它们都让我输入用户名,然后无限期挂起。