linux – SSH连接到ec2连接超时

前端之家收集整理的这篇文章主要介绍了linux – SSH连接到ec2连接超时前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我从Ubuntu 12.11不能SSH到我的ec2实例.

我尝试所有的方法ssh通过提供密钥作为凭据

我用了

ssh -v -i ~/.ec2/pes.pem ec2-user@ec2-54-209-148-122.compute-1.amazonaws.com

我得到的输出

OpenSSH_6.1p1 Debian-4,OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ec2-54-209-148-122.compute-1.amazonaws.com [54.209.148.122] port 22.

debug1: connect to address 54.209.148.122 port 22: Connection timed out
ssh: connect to host ec2-54-209-148-122.compute-1.amazonaws.com port 22: Connection timed out

谢谢你,

解决方法

请确保您已将其配置在端口22的安全组中,您可以从以下链接中引用它:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html

猜你在找的Linux相关文章