小编QHH*_*QHH的帖子

AWS ssh访问'端口22:操作超时'问题

我无法在一天内访问AWS EC2实例.
(AMI:ubuntu/images/ebs/ubuntu-precise-12.04-amd64-server-20121001(ami-22ad1223))

$ ssh -v -i mykey.pem ubuntu@XXX.XXX.XXX.XXX
OpenSSH_5.9p1, OpenSSL 0.9.8x 10 May 2012
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
debug1: connect to address xxx.xxx.xxx.xxx port 22: Operation timed out
ssh: connect to host xxx.xxx.xxx.xxx port 22: Operation timed out
Run Code Online (Sandbox Code Playgroud)

这是我在EC2中的"安全组"设置.
我没有改变设置从一个良好的连接时间.

Ports  Protocol  Source
22      tcp     0.0.0.0/0
80      tcp     0.0.0.0/0
3000    tcp     0.0.0.0/0
3006    tcp     0.0.0.0/0
Run Code Online (Sandbox Code Playgroud)

我已多次尝试重启服务器.
Web服务器进展顺利.但SSH连接不是.

可能有什么问题以及如何使其发挥作用?

ssh ssh-keys amazon-web-services

13
推荐指数
4
解决办法
8424
查看次数

标签 统计

amazon-web-services ×1

ssh ×1

ssh-keys ×1