<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div apple-content-edited="true" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><b class="">assh: connect to host ec2-**-***-**.<a href="http://us-west-2.compute.amazonaws.com/" class="">us-west-2.compute.amazonaws.com</a> port 22: Connection refused</b><div class=""><br class=""></div></div></blockquote><div>It would be more helpful if you give more information. You can check the following to have a try:</div>1. check the user name. &nbsp;&nbsp;<a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html" class="">http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html</a></div><div><ul class="itemizedlist" type="circle" style="font-family: verdana, arial, sans-serif;"><li class="listitem"><p class="simpara" style="margin-bottom: 1em; margin-top: -0.4em;">For an Amazon Linux AMI, the user name is&nbsp;<code class="code" style="font-family: 'Courier New', Courier, mono;">ec2-user</code>.</p></li><li class="listitem"><p class="simpara" style="margin-bottom: 1em; margin-top: -0.4em;">For a RHEL5 AMI, the user name is either&nbsp;<code class="code" style="font-family: 'Courier New', Courier, mono;">root</code>&nbsp;or&nbsp;<code class="code" style="font-family: 'Courier New', Courier, mono;">ec2-user</code>.</p></li><li class="listitem"><p class="simpara" style="margin-bottom: 1em; margin-top: -0.4em;">For an Ubuntu AMI, the user name is&nbsp;<code class="code" style="font-family: 'Courier New', Courier, mono;">ubuntu</code>.</p></li><li class="listitem"><p class="simpara" style="margin-bottom: 1em; margin-top: -0.4em;">For a Fedora AMI, the user name is either&nbsp;<code class="code" style="font-family: 'Courier New', Courier, mono;">fedora</code>&nbsp;or&nbsp;<code class="code" style="font-family: 'Courier New', Courier, mono;">ec2-user</code>.</p></li><li class="listitem"><p class="simpara" style="margin-bottom: 1em; margin-top: -0.4em;">For SUSE Linux, the user name is&nbsp;<code class="code" style="font-family: 'Courier New', Courier, mono;">root</code>.</p></li><li class="listitem"><p class="simpara" style="margin-bottom: 1em; margin-top: -0.4em;">Otherwise, if&nbsp;<code class="code" style="font-family: 'Courier New', Courier, mono;">ec2-user</code>&nbsp;and&nbsp;<code class="code" style="font-family: 'Courier New', Courier, mono;">root</code>&nbsp;don't work, check with the AMI provider.</p></li></ul><div class=""><br class=""></div></div><div>2. check the security group config of this instance to see if the port 22 is listening.</div><div>3. check your key-pair to see if it is a right one.</div><div><br class=""></div><br class=""><div class=""><div class="">Best Regards,</div><div class=""><br class=""></div><div class="">Xiakun Lu</div></div></body></html>