<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Nick,&nbsp;<div>&nbsp; Thanks for the detailed insructions. I'll work my way through the list and see where I went wrong.&nbsp;</div><div>The CHEF recipes would be a great step forward. I have added a few comments below.</div><div><br><div><div>On Oct 12, 2011, at 6:00 AM, Nick Ager wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Larry,<div><br></div><div>Norbert is working on a set of&nbsp;Chef [1]&nbsp;recipes for automating the creating of cloud images. These Chef recipes will supersedes the AMI I created, which was difficult to maintain and parameterise for different uses.</div>
<div><br></div><div>However in the meantime it seems like you're having a problem just getting started on EC2, prior to any Seaside specific configuration. Thing to check are:</div><div><br></div><div>1) Make sure you are ssh ing with a specified user, this varies depending on distribution. For Amazon's Linux distribution the user is ec2-user so you log-in with:</div>
<div>&nbsp; &nbsp;&nbsp;ssh <a href="mailto:ec2-user@ec2-79-125-71-160.eu-west-1.compute.amazonaws.com">ec2-user@ec2-79-125-71-160.eu-west-1.compute.amazonaws.com</a></div><div>&nbsp;For Ubuntu IIRC you have to login as root</div></blockquote><div><br></div><div>&nbsp; Yes, I was sshing with ec2-user@ the public DNS..</div><br><blockquote type="cite"><div><br></div>
<div>2) Ensure you have have enabled SSH in your firewall configuration - though it doesn't sound as though that's your problem as the connection isn't timing-out, but failing during authenticating. SSH has a verbose options (-v) which can help diagnose where the problem lies:</div>
<div><div>&nbsp; &nbsp; ssh -v &nbsp;<a href="mailto:ec2-user@ec2-79-125-71-160.eu-west-1.compute.amazonaws.com">ec2-user@ec2-79-125-71-160.eu-west-1.compute.amazonaws.com</a></div></div><div><br></div></blockquote><div><br></div><div>&nbsp; The connection doesn't time out, although it says that it cannot verify the host and asks whether to continue with login. When I say, Yes, it fails with that&nbsp;</div><div>Public Key error message.&nbsp;</div><br><blockquote type="cite"><div>3) I know of three ways of using keys to authenticate with EC2 instances (there may be more). The method I describe in the blog post [2] makes use of "Cloud-init" [3] which is preinstalled for Amazon's Linux distribution - Cloud-init might not be installed with other distributions. Make sure you follow the syntax I describe in the post:</div>
<div><br></div><div><div>#cloud-config</div><div>ssh_authorized_keys:</div><div>&nbsp; - ssh-rsa AAAAB3NzaC1AAAABIwAAAQEAz21r7532bmknElW8cZhECXFqf/Z/+VRFSy........BtxwC2offQ==nickager@nicksmac.local</div></div><div><br></div></blockquote><blockquote type="cite"><div>
Make sure you include the " - " before your key and lines "#cloud-config" &amp; "ssh_authorized_keys:"&nbsp;</div><div>I find it helpful to form the syntax in a text editor prior to posting into the web-form.</div>
<div><br></div></blockquote><div>&nbsp;&nbsp;</div><div>&nbsp; So, is there a space between the '-' and the 'ssh-rsa'? Does it matter?&nbsp;</div><div><br></div><div>&nbsp; I saw another parameter that said something about disabling metadata. I guess that parameter is not needed.&nbsp;</div><div><br></div><div>&nbsp; By the way, your instructions say open SSH on Port 22 but the screen shot shows port 25, or&nbsp;</div><div>vice versa. I assume that I only need to open up port 22 for SSH.</div><div><br></div><div>&nbsp; It seems like the Security Group stuff has changed. I wasn't able to get the All Internet&nbsp;</div><div>specification that you show. The entries I created all wanted a source, 0,0,0,0 or 1234567890/default.&nbsp;</div><div>What do I do with that?</div><br><blockquote type="cite"><div>It's most probable that this key step is failing for you. I've just tested again the instructions and they still work for me. However, as I mentioned above there are other ways to pass keys to Amazon - see [4] [5] - though you might have to install ec2 tools [6].</div>
<div><br></div><div>For whatever reason it seems Amazon doesn't have the keys it needs to authenticate you on the instance you've created. You should terminate that instance and start again. Don't worry about creating and terminating lots of instances while you experiment with the cloud.&nbsp;</div>
<div><br></div><div>Final thought make sure you are ssh ing using the public DNS address NOT the private DNS address that Amazon also displays.</div><div><br></div></blockquote><div><br></div><div>&nbsp; Yes, I was sshing to the public DNS address but I will try again and see where i went wrong.&nbsp;</div><div><br></div><div>&nbsp; I wonder if it matters that I was trying this from my laptop over Wifi.&nbsp;</div><div><br></div><div>&nbsp; Thanks!</div><div><br></div><div>&nbsp; Larry</div><br><blockquote type="cite"><div>Hope this helps</div><div><br></div><div>Nick</div><div>
<br></div><div>[1] <a href="http://wiki.opscode.com/display/chef/Home">http://wiki.opscode.com/display/chef/Home</a></div><div>[2]&nbsp;<a href="http://www.nickager.com/blog/Installing-Gemstone-on-an-Amazon-EC2-Linux-instance">http://www.nickager.com/blog/Installing-Gemstone-on-an-Amazon-EC2-Linux-instance</a></div>
<div>[3]&nbsp;<a href="https://help.ubuntu.com/community/CloudInit">https://help.ubuntu.com/community/CloudInit</a></div><div>[4]&nbsp;<a href="http://www.robertsosinski.com/2008/01/26/starting-amazon-ec2-with-mac-os-x/">http://www.robertsosinski.com/2008/01/26/starting-amazon-ec2-with-mac-os-x/</a></div>
<div>[5]&nbsp;<a href="http://alestic.com/2010/10/ec2-ssh-keys">http://alestic.com/2010/10/ec2-ssh-keys</a></div><div>[6]&nbsp;<a href="http://www.dougjaworski.com/blog/how-to-install-amazon-ec2-tools-on-a-mac/">http://www.dougjaworski.com/blog/how-to-install-amazon-ec2-tools-on-a-mac/</a></div>
<div><br></div><div><br></div><div><br></div><div>&nbsp;<br><br><div class="gmail_quote">On 11 October 2011 20:03, Lawrence Kellogg <span dir="ltr">&lt;<a href="mailto:mac.hive@me.com">mac.hive@me.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
 &nbsp;Does anybody have a good shortcut for getting an Seaside/Gemstone EC2 AMI up and running<br>
on Amazon so I can try out a Seaside application? I tried Nick Ager's instructions<br>
but the AMI files are no longer around.<br>
<br>
 &nbsp;Thanks,<br>
<br>
 &nbsp;Larry<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br></div>
_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></div></body></html>