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="'times new roman', serif">Configure Root Login</font></div><div><font class="Apple-style-span" face="'times new roman', serif"><br>
</font></div><div><font class="Apple-style-span" face="'times new roman', serif">The alestic AMI'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="'times new roman', serif"><br></font></div><div><ol><li><span class="Apple-style-span" style="font-family: 'times new roman', serif; ">edit /etc/cloud/cloud.cfg and set disable_root: 0</span></li>
<li><span class="Apple-style-span" style="font-family: 'times new roman', serif; ">edit /root/.ssh/authorized_keys and remove prefix commands from pubkey entry</span></li><li><span class="Apple-style-span" style="font-family: 'times new roman', serif; ">edit /usr/bin/cloud-init, go to line 67 and change 'once-per-instance' to 'always', save and exit</span></li>
</ol></div></div><div>Step 1 is easy. Step 3 I'm not sure about since that file looks different in Ubuntu 10.10 and the string "once-per-instance" 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="'courier new', monospace">command="echo 'Please login as the ubuntu user rather than root user.';echo;sleep 10" 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="'courier new', 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've never seen one with a command in it before.</div><div>But I'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's no fun having instances I can't log into. ;(</div><div>Dan</div><div><br></div><div><br></div><div><br></div>