[cs615asa] Weird ssh port 22 error

Xiakun Lu xlu9 at stevens.edu
Tue Feb 10 00:24:23 EST 2015

> assh: connect to host ec2-**-***-**.us-west-2.compute.amazonaws.com <http://us-west-2.compute.amazonaws.com/> port 22: Connection refused
It would be more helpful if you give more information. You can check the following to have a try:
1. check the user name.   http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html <http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html>
For an Amazon Linux AMI, the user name is ec2-user.

For a RHEL5 AMI, the user name is either root or ec2-user.

For an Ubuntu AMI, the user name is ubuntu.

For a Fedora AMI, the user name is either fedora or ec2-user.

For SUSE Linux, the user name is root.

Otherwise, if ec2-user and root don't work, check with the AMI provider.

2. check the security group config of this instance to see if the port 22 is listening.
3. check your key-pair to see if it is a right one.

Best Regards,

Xiakun Lu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs615asa/attachments/20150210/cb92066e/attachment.html>

More information about the cs615asa mailing list