This should not occur with latest images.  There are no keys in the images.
If you try to connect before they're generated, you should get something like:
$ ssh localhost; echo $?
Read from socket failed: Connection reset by peer
255

** Changed in: ec2-init (Ubuntu)
       Status: In Progress => Fix Released

-- 
ssh is started before hostkey is installed/regenerated
https://bugs.launchpad.net/bugs/512377
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to