QHH*_*QHH 13 ssh ssh-keys amazon-web-services
我无法在一天内访问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连接不是.
可能有什么问题以及如何使其发挥作用?
我通常的清单:
如果仍然没有任何线索,则在同一 VPC 中启动一个新实例(来自基础 AMI)。通过 SSH 连接到它。如果成功,请尝试从该实例进行 ssh。
我也面临同样的问题。实际上,我错误地删除了默认的 Internet 网关。
现在您应该可以通过 SSH 连接 EC2 实例了。
归档时间: |
|
查看次数: |
8424 次 |
最近记录: |