Hi all,<div><br></div><div>I am following the instructions here:</div><div><br></div><div><a href="http://starcluster.scripts.mit.edu/~starcluster/wiki/index.php?title=StarCluster_AMI_Cookbook_Ubuntu_10.04">http://starcluster.scripts.mit.edu/~starcluster/wiki/index.php?title=StarCluster_AMI_Cookbook_Ubuntu_10.04</a></div>
<div><br></div><div>...to create a new AMI for use with StarCluster.</div><div><br></div><div>The problem is, I end up with an AMI that I cannot ssh into.</div><div><br></div><div>I am using Ubuntu 10.10 instead of 10.04.</div>
<div><br></div><div>I need some clarification on these steps:<br><br></div><div><div><font class="Apple-style-span" face="&#39;times new roman&#39;, serif">Configure Root Login</font></div><div><font class="Apple-style-span" face="&#39;times new roman&#39;, serif"><br>
</font></div><div><font class="Apple-style-span" face="&#39;times new roman&#39;, serif">The alestic AMI&#39;s have been configured to disable root logins. Follow the commands below to undo this behavior:</font></div><div>
<font class="Apple-style-span" face="&#39;times new roman&#39;, serif"><br></font></div><div><ol><li><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, serif; ">edit /etc/cloud/cloud.cfg and set disable_root: 0</span></li>
<li><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, serif; ">edit /root/.ssh/authorized_keys and remove prefix commands from pubkey entry</span></li><li><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, serif; ">edit /usr/bin/cloud-init, go to line 67 and change &#39;once-per-instance&#39; to &#39;always&#39;, save and exit</span></li>
</ol></div></div><div>Step 1 is easy. Step 3 I&#39;m not sure about since that file looks different in Ubuntu 10.10 and the string &quot;once-per-instance&quot; occurs three times in the file. Should I change all occurrences of it?</div>
<div><br></div><div>Step 2 is the one that I think is messing me up.</div><div><br></div><div>Before modification, /root/.ssh/authorized_keys looked like this:</div><div><br></div><div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">command=&quot;echo &#39;Please login as the ubuntu user rather than root user.&#39;;echo;sleep 10&quot; ssh-rsa AAAAB3..... my-keypair</font></div>
</div></div><div><br></div><div>(actual public key omitted)</div><div><br></div><div>I edited it to look like this:</div><div><meta charset="utf-8"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">ssh-rsa AAAAB3..... my-keypair</font></div>
<div><br></div><div>This is how a typical authorized_keys line looks, in my (limited) experience. I&#39;ve never seen one with a command in it before.</div><div>But I&#39;m wondering if it is still being interpreted as a command. Could it be because of something I did in step 2 or 3?</div>
<div><br></div><div>Hope someone can help. It&#39;s no fun having instances I can&#39;t log into. ;(</div><div>Dan</div><div><br></div><div><br></div><div><br></div>