Results 1 to 4 of 4

Thread: No ssh keys installed in instances

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Beans
    11

    No ssh keys installed in instances

    While I can start instances in my UEC install, I can't do anything with them.

    After some poking around and with the help of ssh -v, I've figured out that the problem is that the ssh-keys aren't getting installed.

    What I don't know is how to fix that!

    I've tried deleting my old key-pair and making a new one, but that didn't help.

    Any suggestions?

    I suspect that part of the problem might be running both the cloud controller and the node controller on the same machine. I already found that I had to remove the node, then re-register it to get it to show up.

  2. #2
    Join Date
    Apr 2010
    Beans
    92

    Re: No ssh keys installed in instances

    I found out the hard way that every time you restart an instance it recreates the ssh key pair (not your mykey.priv). The one I created the first time I sshed in using ssh -i ~/.euca/mykey.priv ubuntu@ip_of_insidence is still in my .ssh/known_hosts file (the one for all ssh public keys based on the ip address). When I restart an instance (or when I used the same IP address for some other ssh keyed access) the login fails because it is now the wrong ssh public key. The error returned from a failed login shows the line number in the known_hosts file. I edit known_hosts and delete the offending line. All is well.
    Is this your problem?
    ElasticFox and HybridFox do not tell you this when you click on the button to log into the instance, they just fail without explanation.
    Last edited by Rusty au Lait; October 11th, 2010 at 11:03 PM.

  3. #3
    Join Date
    Oct 2010
    Beans
    11

    Re: No ssh keys installed in instances

    No, it never gets to the key negotiation at all, it fails early. So there are no ssh keys period.

  4. #4
    Join Date
    Aug 2010
    Beans
    261
    Distro
    Ubuntu

    Re: No ssh keys installed in instances

    If you don't get a reply here, you can try the ubuntu-cloud mailing list too
    https://lists.ubuntu.com/mailman/listinfo/Ubuntu-cloud

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •