slow ssh connect to host from openstack vm

if you having a slow-login problem when you are trying to connect ssh from the openstack vm to the outside world. This will solve the issue:

Edit /etc/nsswitch.conf , change “hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4” to “hosts: files dns”, no need to restart anything, ssh login prompt will come out quickly.