Ask Your Question
0

should "view console" use ssh keys?

asked 2013-09-04 09:22:43 -0500

adubb gravatar image

Im not sure if openstack is supposed to work like this. I create an instance, assign a keypair, then hit view console, but it never uses the keypair, it asks for user/pass.

If I do it the long way and download the public key, then ssh -i key ubuntu@10.0.0.2 from the openstack server I can get in, but that is not very end user friendly when they create servers, which is what we are trying to achieve by using openstack.

Thanks.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-10-23 22:55:40 -0500

dasp gravatar image

Keep in mind that SSH (private) keys are not stored in OpenStack database at all for obvious security reasons. They are for your use only. And there is no need and no way to use an SSH key through a website - after all, it's easier to type in a password than a typically 4K key.

What you can do to access the instance easily with the use of a password, is to set it using the "post-installation customization script" (last tab on the Launch new instance window).

Put in a script like that:

#!/bin/bash
echo "root:password" | chpasswd

Then just log in with the username "root" and password "password". Keep in mind that if for any reason instance does not discover networking (i.e. if your DHCP agent is down) and doesn't pull "EC2 metadata", these credentials will not become valid.

edit flag offensive delete link more
0

answered 2013-09-04 10:19:02 -0500

serverascode gravatar image

I should do some more research so that I can use the right terminology to answer this question, but basically no, you can't use SSH keys to login to a virtual terminal/console. Further, for some, "the long way" as you describe it, is actually much easier than using the remote console provided in OpenStack Horizon (which is what I assume you are using). In fact I have a small OpenStack cluster and Horizon isn't even installed. :)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-09-04 09:22:43 -0500

Seen: 1,278 times

Last updated: Oct 23 '13