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
• 28,860 points
308 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
• 66,940 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 in OpenStack by MD
• 66,940 points
211 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 in OpenStack by MD
• 66,940 points
61 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 in OpenStack by MD
• 66,940 points
93 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 in OpenStack by MD
• 66,940 points
100 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 in OpenStack by MD
• 66,940 points
129 views
0 votes
2 answers
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
• 66,940 points
179 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
• 66,940 points
193 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
• 66,940 points
712 views