我创建了一个Amazon EC2实例,它一开始运行得很好,但是大约一天后突然(即使我无法想到任何更改)就不能连接了。
以下是我的详细SSH输出:
ssh -v -i ~/.ssh/FreeJeff.pem ec2user@ec2-52-25-248-179.us-west-2.compute.amazonaws.com
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 53: Applying options for *
debug1: Connecting to ec2-52-25-248-179.us-west-2.compute.amazonaws.com [52.25.248.179] port 22.
debug1: Connection established.
debug1: identity file /Users/peter/.ssh/FreeJeff.pem type -1
debug1: identity file /Users/peter/.ssh/FreeJeff.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
这里停留了大约五分钟...然后...
ssh_exchange_identification: read: Connection reset by peer
我做过的事情:重新启动实例(不能解决问题),从AMI终止和创建新实例(只能解决另一天的问题),并尝试不同的WiFi网络(无处有效!)。
telnet ec2-52-25-248-179.us-west-2.compute.amazonaws.com 22
可以工作。
关于我自己的详细信息:从OSX连接。