简体   繁体   English

连接到AWS时SSH冻结

[英]SSH freeze when connecting to AWS

Connecting to Ubuntu 14.04 server at AWS gx2.2 instance(Huge GPU one), from an Ubuntu 14.04 system with the following command: 使用以下命令从Ubuntu 14.04系统连接到AWS gx2.2实例(一个巨大的GPU)上的Ubuntu 14.04服务器:

ssh -i ~/.ssh/key.pem ubuntu@12.121.12.321

Normally it would just connect, but now it times out with this error: 通常它只是连接,但现在由于以下错误而超时:

ssh: connect to host 54.171.53.164 port 22: Connection timed out

I can Ctrl+C out of the freeze though. 我可以按Ctrl + C冻结。
I have tried to restart. 我试图重启。
I have tried to sudo apt-get update . 我试图sudo apt-get update

Recheck your AWS parameters... 重新检查您的AWS参数...

1) Check Public Ip associated with the Amazon ec2 instance, check whether it is the same as ip address 12.121.12.321 you are using to make connection. 1)检查与Amazon ec2实例关联的Public Ip,检查它是否与用于建立连接的IP地址12.121.12.321相同。

2) Check the inbound rule of the security group associated with the Amazon ec2 instance. 2)检查与Amazon ec2实例关联的安全组的入站规则。 Ensure that the inbound rule has ssh access to the ip address of the machine from which you are trying to connect the Amazon ec2 instance. 确保入站规则具有ssh访问您尝试从其连接Amazon ec2实例的计算机的IP地址的权限。

3) Ensure that the pem file you file you are using is appropriate. 3)确保使用的文件是pem文件。

Hope it helps... 希望能帮助到你...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM