If you want to disable reverse mapping checking getaddrinfo while connecting to a remote server via SSH then there two options :
local : /etc/hosts
If you want to resolve this locally then all you need to do is to add an entry for the remote host in the /etc/hosts file as :
[email protected][#] vi /etc/hosts Add the below line 10.10.10.10 server.remotehost.com save and quit.
remote : /etc/ssh/sshd_config
open the /etc/ssh/sshd_config file and then locate the entry
# GSSAPI options #GSSAPIAuthentication no GSSAPIAuthentication yes #GSSAPICleanupCredentials yes GSSAPICleanupCredentials yes #GSSAPIStrictAcceptorCheck yes #GSSAPIKeyExchange no
In the above entries you need to commend the line
to disable the reverse mapping authentication for SSH
and then restart the sshd service
That’s all you are done.