Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

can't SSH into instance but can ping instance

I have launched an instance in public subnet with cirros image where i am able to login into the console from dashboard service but when i try to login with ssh i am getting connection refused error

[root@openstack .ssh]# ssh
ssh: connect to host port 22: Connection refused

here is my default security group rules

ALLOW IPv4 tcp from
ALLOW IPv4 53/tcp from
ALLOW IPv4 1-65535/tcp to
ALLOW IPv4 icmp to
ALLOW IPv4 from
ALLOW IPv4 80/tcp from
ALLOW IPv4 icmp from
ALLOW IPv4 22/tcp from

So after that I have tried nmap command to findout all listing ports of my launched instance

[root@openstack .ssh]# nmap
Starting Nmap 6.40 ( ) at 2018-06-08 20:43 IST
Nmap scan report for
Host is up (0.00033s latency).
Not shown: 996 closed ports
80/tcp   open  http
111/tcp  open  rpcbind
2049/tcp open  nfs
6000/tcp open  X11

Here you can observe that 22 ssh port is not opened on the launched instance but when login into the instance from dashboard service where I can see 22 ssh port listening and I am also able to telnet to the instance with port 80

[root@openstack .ssh]# telnet 80
Connected to
Escape character is '^]'.

Plese suggest me what logs should I check to resolve this error