替换根卷后无法访问AWS EC2实例



我试图将AWS EC2 c5迁移到c6g。

一切都很好,但当我通过附加上一个c5实例的根卷来替换c6g(新实例(的根卷时,我无法通过ssh访问该实例。我看到的只是一条信息,上面写着";无法连接到您的实例">

SSH响应:

OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home/mekapilbasnet/.ssh/config
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 3.7.103.6 [3.7.103.6] port 22.
debug1: connect to address 3.7.103.6 port 22: Connection timed out
ssh: connect to host 3.7.103.6 port 22: Connection timed out

我做错什么了吗?

我从.ssh/目录中删除known_hosts文件,并使用ssh -i "pem_key.pem" user@ip_address重新创建它

最新更新