Hi, Scott!<br><br>I knew that the password was already on the cirros image. However, we (Grid Dynamics engineers) faced a strange problem:<br>1) if an instance is launched without an ssh key, you can login using the password (generated by nova in our case);<br>
2) if an instance is launched _with_ an ssh key, you cannot login using either password or the ssh key.<br><br>So, VM's filesystem synchronization can be a dark and tricky thing. That's why we are not guaranteed to login by password even if the password was stored in the image originally.<br>
<br><div class="gmail_quote">On Thu, Jun 21, 2012 at 5:38 PM, Scott Moser <span dir="ltr"><<a href="mailto:smoser@ubuntu.com" target="_blank">smoser@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, 21 Jun 2012, udit agarwal wrote:<br>
<br>
> Hi Mandar,<br>
>   Thanks for your reply. But I am still stuck in the problem. I tried with<br>
> cirros but with no luck. And for the next one, the system still asks me for<br>
> password, but it was supposed to be password-less. Can anybody help me with<br>
> this??<br>
<br>
</div>As Alexey pointed out, the password for cirros is "cubswin:)".<br>
The *user* is 'cirros'.<br>
<br>
So, to login with password auth:<br>
  ssh cirros@<ip-address-here><br>
<br>
password-less ssh *should* work and should *not* depend on filesystem<br>
injection by nova.  cirros will read the public keys specified from the<br>
metadata service and import them into the cirros user's account.<br>
<br>
You have to specify a key when you launch the instance either by:<br>
  * nova boot --key_name KEYNAME<br>
or<br>
  * euca-run-instances --key KEYNAME<br>
<br>
To debug why passwordless ssh is not working:<br>
 * get the console output of the instance.  It likely is complaining that<br>
   it cannot find the metadata service.<br>
 * ssh in with password auth and run 'ec2metadata --public-keys'.  This<br>
   will probably fail.<br>
<br>
Basically, I suspect that your metadata service is not available to the<br>
instance.<br>
<span class="HOEnZb"><font color="#888888"><br>
Scott<br>
</font></span><div class="HOEnZb"><div class="h5">><br>
>   Thanks in advance.<br>
><br>
> --Udit<br>
><br>
> On Thu, Jun 21, 2012 at 6:53 PM, Vaze, Mandar <<a href="mailto:Mandar.Vaze@nttdata.com">Mandar.Vaze@nttdata.com</a>>wrote:<br>
><br>
> > Default password for cirros is "cubswin:)" - including the smiley<br>
> > I hope you entered correct password (It is easy to ignore the last two<br>
> > characters thinking it is a smiley)<br>
> ><br>
> > Other options is to use password less ssh login using keypair.<br>
> > See<br>
> > <a href="http://docs.openstack.org/essex/openstack-compute/starter/content/Launch_and_manage_instances-d1e1885.html" target="_blank">http://docs.openstack.org/essex/openstack-compute/starter/content/Launch_and_manage_instances-d1e1885.html</a><br>

> ><br>
> > -Mandar<br>
> ><br>
> > From: openstack-bounces+mandar.vaze=<a href="mailto:nttdata.com@lists.launchpad.net">nttdata.com@lists.launchpad.net</a>[mailto:<br>
> > openstack-bounces+mandar.vaze=<a href="mailto:nttdata.com@lists.launchpad.net">nttdata.com@lists.launchpad.net</a>] On Behalf<br>
> > Of udit agarwal<br>
> > Sent: Thursday, June 21, 2012 11:13 AM<br>
> > To: <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
> > Subject: [Openstack] ssh not authenticating<br>
> ><br>
> > Hi,<br>
> >  I have setup openstack on my system using the manual<br>
> > <a href="http://docs.openstack.org/essex/openstack-compute/install/apt/content/" target="_blank">http://docs.openstack.org/essex/openstack-compute/install/apt/content/</a>. I<br>
> > tried to run the test image "cirros" on my system. While I can easily ping<br>
> > it, I faced some problems in authenticating via ssh. First, it asks for<br>
> > password, even providing the correct password for the same, it re asked the<br>
> > password 2 more times and finally denied me the permission. I couldn't<br>
> > resolve this issue then.<br>
> ><br>
> >  Can anybody help me with this???<br>
> >  thanks in advance.<br>
> ><br>
> > --Udit<br>
> ><br>
> > ______________________________________________________________________<br>
> > Disclaimer:This email and any attachments are sent in strictest confidence<br>
> > for the sole use of the addressee and may contain legally privileged,<br>
> > confidential, and proprietary data.  If you are not the intended recipient,<br>
> > please advise the sender by replying promptly to this email and then delete<br>
> > and destroy this email and any attachments without any further use, copying<br>
> > or forwarding<br>
> ><br>
><br>
<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alessio Ababilov<br>Software Engineer<br>
                        
                                
                                
                                        Grid Dynamics<br><br>