SSH
d is by default configured to perform DNS Lookup
everytime you connect to the server. This is especially true for CentOS
/Red Hat
and could significantly increase login time.
UseDNS
Specifies whether sshd(8) should look up the remote host name
and check that the resolved host name for the remote IP address
maps back to the very same IP address. The default is “yes”.
To fix this you’ll have to disable the UseDNS
option on the server via the following steps;
-
Open
SSH
d config file./etc/ssh/sshd_config
-
Look for
UseDNS
and set the value tono
UseDNS no
-
Restart
SSH
d service