Ask Your Question

ssh from openstack VM to host

asked 2017-03-28 03:39:06 -0500

surabhi gravatar image

updated 2017-03-28 03:39:47 -0500

Can we ssh from openstack instance to host?? If possible how to do that ? We tried from instance to ssh into host like giving: ssh user@hostip, but its not sshing and throwing error as no route to host. Kindly help us in solving this issue and correct way to ssh from openstack VM to its host.

Thanks in advance!!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-03-28 04:46:45 -0500

ShubhamMeshram gravatar image

you need to add a route from instance to host. and you need to make the host as the gateway for the instance

edit flag offensive delete link more



Ok. kindly, can u explain in detail regarding adding the route

surabhi gravatar imagesurabhi ( 2017-03-28 05:57:27 -0500 )edit

You need to change it in your host machine network settings. What OS are you using as your base OS which is running VM?

student gravatar imagestudent ( 2017-03-28 06:20:57 -0500 )edit

Is your instance configured with a safety group that allows outgoing SSH-connections?

jmoeyersons gravatar imagejmoeyersons ( 2017-03-28 08:58:23 -0500 )edit

@student: Im using ubuntu 16.04 as base OS in VM and my host OS is ubuntu14.04. What extra changes should I do in my host machine network settings? Please explain

surabhi gravatar imagesurabhi ( 2017-03-29 23:43:00 -0500 )edit

@jmoeyersons: Yes it has ssh rule for Egress(Outside)

surabhi gravatar imagesurabhi ( 2017-03-29 23:43:46 -0500 )edit

answered 2017-03-28 04:43:02 -0500

Azza Khalel gravatar image

you can ping to an external host which connected to it's internal same network or from the floating network which the instance connected.

edit flag offensive delete link more


yes I can ping the host.

surabhi gravatar imagesurabhi ( 2017-03-29 23:44:35 -0500 )edit

@surabhi so the ping gets ICMP anwsers, but ssh is still throwing the error no route to host?

jmoeyersons gravatar imagejmoeyersons ( 2017-04-04 06:22:06 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-03-28 03:39:06 -0500

Seen: 373 times

Last updated: Mar 28 '17