Error no route to host error

Hi,

I am running a dev vagrant box with OpenStack installed on it. I am having a problem connecting to my instance through ssh.
When I tried to ssh, I got an error like this :
ssh connect to host 10.0.0.2 port 22: No route to host
Can someone please help me debug this error?

Thanks in advance

Hello Rishabh,
Here are a few things and places you should look at as it seems like a network / ssh issue:
a - ensure ssh is enabled in firewall (iptables), if it already is try disabling and re-enabling ssh (works many times :slight_smile: )
b - Scan with nmap (nmap.org)
c - look at /var/log/messages for ssh errors (during the times he is unable to connect as he mentioned its intermittent)
d - Also try route -n or netstat -n to check for routing issues

Hope this helps :slight_smile: