Ask Your Question

How to SSH into app instance after launch/creation?

asked 2015-01-22 13:55:12 -0600

smeeb gravatar image

updated 2015-01-22 13:56:02 -0600

I am running DevStack on a remote VM. I logged into Horizon and created a new (CoreOS) app instance from an ISO, using a Security Group and Key Pair that I previously set up.

The app has a status of 'Running' and appears to be online/healthy/working (as far as I can tell through Horizon at least).

I would now like to SSH into that instance and play around. It occurred to me that I never saw a "default SSH" username/password anywhere for CoreOS, so I googled it and found (this article) which states that the default user is core and that instead of a password you are supposed to supply the SSH private key.

So I open a shell and run:

ssh -i ssh_test_1.pem core@

Where ssh_test_1.pem is the private key I previously downloaded after generating a Key Pair in Horizon, and where is the IP of the CoreOS instance, according to Horizon.

When I run this I get:

ssh: connect to host port 22: No route to host

Am I doing something fundamentally wrong? Any ideas as to what the fix is?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-22 14:12:20 -0600

Here are just a few suggestions, and posting your console logs here might help if you are still unsure if the instance was created properly. Good Luck :) - Confirm in the console logs that the SSH key was injected (you need cloudinit on the image for this to happen) - Confirm your security group rules allow for port 22 access aka SSH. - Confirm there is no overlap on your local network for 10.0.0.X

edit flag offensive delete link more


Thanks @omar-munoz (+1) - I am brand new (Day #2) to OpenStack/DevStack - do you mind telling me what cloudinit is, and how it relates to my console logs? Also, my sec group rules look correct, so it may be the network overlap - any idea how I could test that out? Thanks again!

smeeb gravatar imagesmeeb ( 2015-01-22 14:15:40 -0600 )edit

Also, I'm intrigued by your comment "Good luck :)" - my takeaway from this is that OpenStack doesn't have a good way of giving you insight to instance startup health?!? Or am I readig into your remark too much?!

smeeb gravatar imagesmeeb ( 2015-01-22 14:18:44 -0600 )edit

Cloud-init is the defacto multi-distribution package that handles early initialization of a cloud instance. The link below explains the image requirements, also did you use this doc to download/upload the image you should be fine.

omar-munoz gravatar imageomar-munoz ( 2015-01-22 14:53:58 -0600 )edit

Ahhh, no I did not, I just uploaded the ISO from their downloads page. I will try again using that link (thanks)!

smeeb gravatar imagesmeeb ( 2015-01-22 14:58:14 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-01-22 13:55:12 -0600

Seen: 1,798 times

Last updated: Jan 22 '15