How can I do SSH inside my instance in OpenStack?

0 votes

Hi Guys,

I'm new in OpenStack. I launched an instance and attached key-pairs, still I'm not able to SSH in my instance. Generally, in AWS we have to create one key for SSH and we can remotely log in. But same thing is not working here. How to solve this problem?

Thank You

Mar 17 in OpenStack by akhtar
• 4,500 points
26 views

1 answer to this question.

0 votes

Hi@akhtar,

Yes, there is nothing wrong with your steps. But when you launch an instance in AWS, apart from key they do lots of thing internally. AWS assigns gateway, IP, security etc. Whereas in OpenStack the scenario is not the same. When you launch an instance in OpenStack, it will launch in Host Only Mode. So, you can ping or SSH to your instance if you are in the same Network or Router. I think that is the issue with your instance.

Now coming to the solution. You can add your VM's public ip with your instance. For that you can follow the below given steps.

$ ssh-keygen
$ cd .ssh
$ nova keypair-add –pub_key id_rsa.pub mykey

Hope this will help you.

Thank You

answered Mar 17 by MD
• 8,870 points

Related Questions In OpenStack

0 votes
1 answer

How can I create a network in OpenStack automatically?

Hi@akhtar, To create the router automatically, provide the ...READ MORE

answered Mar 18 in OpenStack by MD
• 8,870 points
20 views
0 votes
1 answer

How can I create a public network in OpenStack?

Hi@akhtar,  In OpenStack you are the admin of ...READ MORE

answered Mar 18 in OpenStack by MD
• 8,870 points
18 views
0 votes
1 answer

How do I create new router in OpenStack?

Hi@akhtar, You can create a router in OpenStack. ...READ MORE

answered Mar 18 in OpenStack by MD
• 8,870 points
17 views
0 votes
1 answer
0 votes
1 answer

Why I am getting Server Failure in OpenStack ?

Hi@akhtar, We can't say Neutron is the one ...READ MORE

answered Mar 17 in OpenStack by MD
• 8,870 points
21 views
0 votes
1 answer

openstack Connection to neutron failed.

Hi@akhtar, For the above issue, there may be multiple cause ...READ MORE

answered Mar 24 in OpenStack by MD
• 8,870 points
26 views
0 votes
1 answer

How can I create my own image flavor in OpenStack?

Hi@akhtar, To create image flavor in OpenStack, follow ...READ MORE

answered Mar 20 in OpenStack by MD
• 8,870 points
23 views
0 votes
1 answer

How do I install OpenStack in RHEL 7/CentOS 7?

Hi@akhtar, Follow the below steps to install OpenStack. IP ...READ MORE

answered Mar 13 in OpenStack by MD
• 8,870 points
168 views