【发布时间】:2013-06-04 06:38:53
【问题描述】:
最近我设置了一个新的 EC2 实例。第二天我无法通过 ssh 连接到我的实例。我可以在前一天连接和断开连接,我确信我什么也没做。这是 ssh 调试信息:
ssh -i webserver.pem -v ubuntu@my.elastic.ip
OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to my.elastic.ip [my.elastic.ip] port 22.
debug1: Connection established.
debug1: identity file webserver.pem type -1
debug1: identity file webserver.pem-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9
debug1: SSH2_MSG_KEXINIT sent
Connection closed by my.elastic.ip
有没有办法解决这个问题?还是我应该重新安装我的实例?
我的 .pem 的 PS 权限设置为 600。
【问题讨论】:
-
当您粘贴长当前连接 URL 时,通常很容易忘记“ubuntu@”!
标签: ssh amazon-web-services amazon-ec2 connection ubuntu-12.04