CentOS Very Slow SSH Password Prompt

This is post is now quite old and the the information it contains may be out of date or innacurate.

If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub

If you are finding it takes ages for a password prompt to come up when trying to connect to a CentOS server (and possibly others) this is a solution.

The cause is that your IP address does not have the correct reverse DNS etc settings.

You can of course try to fix all that but if you need a quick fix, you can edit the sshd configuration and disable

GSSAPIAuthentication yes

to: GSSAPIAuthentication no

and

UseDNS yes

to: UseDNS no


Tags: sshslowcentosloginpasswordprompt