Since CENTOS 7 came out I’ve noticed some containers take forever to return a password prompt when you ssh into them.
I’ve narrowed it down to a few things:
1. Make sure the DNS entry for the server is correct, you can test this using dig:
dig +noall +answer -x 188.8.131.52
184.108.40.206.in-addr.arpa. 576 IN PTR the.domain.name.here
2. If you can’t setup the DNS PTR record then edit /etc/ssh/sshd_config set:
Then restart sshd and see if that resolves the issue, if not when you try to log in use -vvv on the ssh command line to get verbose output and debug from there.