Added UseDNS no to ssh config and also add localnetwork to hosts.allow