[Openstack] Can't ssh into instance

Anton Haldin ahaldin at griddynamics.com
Fri May 25 14:27:15 UTC 2012


Thank you Scott for your answer
Now I think I have full understanding  of this case.

Without keys openssh server would reset ssh session immediately.



On Fri, May 25, 2012 at 6:01 PM, Scott Moser <smoser at ubuntu.com> wrote:

> On Fri, 25 May 2012, Anton Haldin wrote:
>
> > Thank you very much guys  Sébastien and Leander
> >
> > It was very interesting case.
> >
> > I thought if I see this lines in compute.log then sshkey  injection was
> > successfully
>
> Given functional metadata service,
> ssh key injection from the host is not necessary for ubuntu images.
>
> >
> > And I was sure I have few vms  with metadata server access issue and
> > without ssh connection issue .
>
> Ubuntu cloud images do not have any ssh HostKey generated inside them
> (/etc/ssh/ssh_host_{ecdsa,dsa,rsa}_key). The keys are generated by
> cloud-init after it finds a metadata service.  Without a metadata service,
> they do not get generated.  ssh will drop your connections immediately
> without HostKeys.
>
> This is arguably a bug, and there is an open bug to have the keys
> generated independent of ability to find a metadata service
> (http://pad.lv/906669).
>
> > It looks like I need some additional tests and need more time for code
> > reading : - )
>
> Fix the metadata issue, you're going to want it.
>
> Alternatively, use configdrive
> (
> http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/configdrive/README
> )
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120525/e6f57b9d/attachment.html>


More information about the Openstack mailing list