我从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
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html