[cs615asa] Weird ssh port 22 error
jschauma at stevens.edu
Tue Feb 10 14:19:15 EST 2015
Xiakun Lu <xlu9 at stevens.edu> wrote:
> > assh: connect to host ec2-**-***-**.us-west-2.compute.amazonaws.com <http://us-west-2.compute.amazonaws.com/> port 22: Connection refused
> 1. check the user name.
Carefully read the error message. It does not say anything along the
lines of "login denied"; it says "connection refused".
That means that there is no port open on port 22 on the given hostname.
Note also that this is different from an error message that says "ssh:
connect to host <hostname> port 22: Operation timed out".
"operation timed out" would indicate a problem with the packets actually
getting to the host, so checking the security group and network rules
would make sense here. However, if you know packets are getting to the
host but nothing is listening on the port in question (ie "connection
refused"), then that is not the problem.
You may want to check whether or not the instance in question is
actually running. So to describe your problem, you may want to show how
to recreate it. The steps you'd describe would be:
- create a new instance of AMI-12345
- show that the instance is running
- show how ssh cannot connect
For all these, show the _exact_ command you ran together with all the
More information about the cs615asa