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, 2020 in OpenStack by akhtar
• 38,180 points
684 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, 2020 by MD
• 95,140 points

Related Questions In OpenStack

0 votes
1 answer

How do I configure Block Storage to use an NFS storage back end in OpenStack?

Hi@akhtar, You can use NFS technology for your ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,140 points
325 views
0 votes
1 answer

How can I create one private subnet in OpenStack?

Hi@Hasid, If you launched all the instances within ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,140 points
106 views
0 votes
1 answer

How can I create one container in OpenStack?

Hi@Hasid, In OpenStack, Swift provides container service. Follow ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,140 points
142 views
0 votes
1 answer

How can I upload an Object in OpenStack?

Hi@Hasid, You can upload your files inside your container. ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,140 points
135 views
0 votes
1 answer

error: server error. Is Neutron not working properly?

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

answered Mar 17, 2020 in OpenStack by MD
• 95,140 points
242 views
0 votes
2 answers
0 votes
1 answer
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, 2020 in OpenStack by MD
• 95,140 points
328 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, 2020 in OpenStack by MD
• 95,140 points
309 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, 2020 in OpenStack by MD
• 95,140 points
1,065 views