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

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...