← Back to team overview

openstack team mailing list archive

Re: ssh not authenticating

 

Hi, Scott!

I knew that the password was already on the cirros image. However, we (Grid
Dynamics engineers) faced a strange problem:
1) if an instance is launched without an ssh key, you can login using the
password (generated by nova in our case);
2) if an instance is launched _with_ an ssh key, you cannot login using
either password or the ssh key.

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.

On Thu, Jun 21, 2012 at 5:38 PM, Scott Moser <smoser@xxxxxxxxxx> wrote:

> On Thu, 21 Jun 2012, udit agarwal wrote:
>
> > Hi Mandar,
> >   Thanks for your reply. But I am still stuck in the problem. I tried
> with
> > cirros but with no luck. And for the next one, the system still asks me
> for
> > password, but it was supposed to be password-less. Can anybody help me
> with
> > this??
>
> As Alexey pointed out, the password for cirros is "cubswin:)".
> The *user* is 'cirros'.
>
> So, to login with password auth:
>  ssh cirros@<ip-address-here>
>
> password-less ssh *should* work and should *not* depend on filesystem
> injection by nova.  cirros will read the public keys specified from the
> metadata service and import them into the cirros user's account.
>
> You have to specify a key when you launch the instance either by:
>  * nova boot --key_name KEYNAME
> or
>  * euca-run-instances --key KEYNAME
>
> To debug why passwordless ssh is not working:
>  * get the console output of the instance.  It likely is complaining that
>   it cannot find the metadata service.
>  * ssh in with password auth and run 'ec2metadata --public-keys'.  This
>   will probably fail.
>
> Basically, I suspect that your metadata service is not available to the
> instance.
>
> Scott
> >
> >   Thanks in advance.
> >
> > --Udit
> >
> > On Thu, Jun 21, 2012 at 6:53 PM, Vaze, Mandar <Mandar.Vaze@xxxxxxxxxxx
> >wrote:
> >
> > > Default password for cirros is "cubswin:)" - including the smiley
> > > I hope you entered correct password (It is easy to ignore the last two
> > > characters thinking it is a smiley)
> > >
> > > Other options is to use password less ssh login using keypair.
> > > See
> > >
> http://docs.openstack.org/essex/openstack-compute/starter/content/Launch_and_manage_instances-d1e1885.html
> > >
> > > -Mandar
> > >
> > > From: openstack-bounces+mandar.vaze=nttdata.com@xxxxxxxxxxxxxxxxxxx
> [mailto:
> > > openstack-bounces+mandar.vaze=nttdata.com@xxxxxxxxxxxxxxxxxxx] On
> Behalf
> > > Of udit agarwal
> > > Sent: Thursday, June 21, 2012 11:13 AM
> > > To: openstack@xxxxxxxxxxxxxxxxxxx
> > > Subject: [Openstack] ssh not authenticating
> > >
> > > Hi,
> > >  I have setup openstack on my system using the manual
> > > http://docs.openstack.org/essex/openstack-compute/install/apt/content/.
> I
> > > tried to run the test image "cirros" on my system. While I can easily
> ping
> > > it, I faced some problems in authenticating via ssh. First, it asks for
> > > password, even providing the correct password for the same, it re
> asked the
> > > password 2 more times and finally denied me the permission. I couldn't
> > > resolve this issue then.
> > >
> > >  Can anybody help me with this???
> > >  thanks in advance.
> > >
> > > --Udit
> > >
> > > ______________________________________________________________________
> > > Disclaimer:This email and any attachments are sent in strictest
> confidence
> > > for the sole use of the addressee and may contain legally privileged,
> > > confidential, and proprietary data.  If you are not the intended
> recipient,
> > > please advise the sender by replying promptly to this email and then
> delete
> > > and destroy this email and any attachments without any further use,
> copying
> > > or forwarding
> > >
> >
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Alessio Ababilov
Software Engineer
Grid Dynamics

Follow ups

References