ssh - Connecting to Amazon EC2 Instance Hangs Suddenly -


so create amazon ec2 instance , works great day, (even without changes can think of) stops being able connect.

here's verbose ssh output

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 * debug1: /etc/ssh_config line 53: applying options * debug1: connecting 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 protocol 2.0 debug1: local version string ssh-2.0-openssh_6.2 

hangs here 5 minutes... then...

ssh_exchange_identification: read: connection reset peer 

things have done: restarting instance (doesn't solve problem), terminating , creating new instance ami (solves problem day), , trying different wifi networks (doesn't work anywhere!).

telnet ec2-52-25-248-179.us-west-2.compute.amazonaws.com 22 work.

details me: connecting osx.

the solution had configured ec2 incorrectly begin with. creating new ec2 solved problem.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -