<p dir="ltr">When you created the instance did you generate a key pair? Did you download the private key? When you say into an ec2 instance you have to use the private key you set the instance up with. Check that.</p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 3, 2015, 10:22 AM Rick Hornsby <<a href="mailto:richardjhornsby@gmail.com">richardjhornsby@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there some secret trick to logging into your ec2 Linux instance for the first time? I've never used ec2 before, so I must be missing something obvious but I've been fighting with it since last night.<br>
<br>
$ ssh ec2-user@52.4.7.xxx<br>
ssh: connect to host 52.4.7.xxx port 22: Operation timed out<br>
<br>
That's all I've been able to get it to do. A few answers to questions I've seen on interweb threads:<br>
<br>
* Outbound ssh from the same [client] host ^ works just fine to anywhere else<br>
* ssh with -vvvvv shows the same thing - the connection times out before anything else (auth etc) happens<br>
* The "security group" rules are:<br>
Security Groups associated with i-e701bxxx<br>
Ports Protocol Source ssh anywhere (<- my label)<br>
22 tcp <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a> ✔<br>
-1 icmp <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a> ✔<br>
* The instance has a public IP address (or it at least appears to)<br>
* I have the same issue when using the Amazon java ssh client, so it doesn't seem to be client specific<br>
* I don't think this this an authentication problem (ssh keys, etc) because I'm not even getting that far<br>
* ssh from different sources/hosts/networks is the same result, so the problem looks like the instance.<br>
<br>
<br>
The VPC ID and Subnet ID are just a random string, have no idea what they're supposed to be. I've tried leaving them at their defaults, I've tried new instances and changing the values - same results.<br>
<br>
Any suggestions or thoughts on what I might be doing wrong?<br>
<br>
My alternative is to pay DH $15/month for a virtual private server. I like DH and rave about them, but don't want to pay $15/month for the same size thing I can get at EC2 for free.<br>
<br>
thanks!<br>
_______________________________________________<br>
colug-432 mailing list<br>
<a href="mailto:colug-432@colug.net" target="_blank">colug-432@colug.net</a><br>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" rel="noreferrer" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br>
</blockquote></div>