I am not able to SSH into my ec2 instance, even after booting another instance from the AMI of the current instance. The SSH verbose logs of the SSH command are:
即使在从当前实例的AMI引导另一个实例后,我也无法SSH到我的ec2实例中。 SSH命令的SSH详细日志为:
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 52.45.XXX.XXX [52.45.XXX.XXX] port 22.
And it gets stuck and gives timeout after few seconds. I am using the correct key and command for sure.
它会卡住并在几秒钟后暂停。我正在使用正确的密钥和命令。
Is there a way I can access the files stored on the ec2 instance? Maybe, backing them up to s3 using the AWS console. I have sudo access of AWS console UI. How can I recover my data using AWS console UI? Or any other way to get the data or to SSH into the instance?
有没有办法可以访问存储在ec2实例上的文件?也许,使用AWS控制台将它们备份到s3。我有对AWS控制台UI的sudo访问权限。如何使用AWS控制台UI恢复数据?或者以任何其他方式获取数据或SSH进入实例?
1 个解决方案
#1
1
If the files are on an EBS volume then detach the volume and attach it to another server which you can connect to. If the files are on an instance store then you can't recover them.
如果文件位于EBS卷上,则分离卷并将其连接到您可以连接的另一台服务器。如果文件位于实例存储上,则无法恢复它们。
#1
1
If the files are on an EBS volume then detach the volume and attach it to another server which you can connect to. If the files are on an instance store then you can't recover them.
如果文件位于EBS卷上,则分离卷并将其连接到您可以连接的另一台服务器。如果文件位于实例存储上,则无法恢复它们。