How to disable SSH reverse mapping checking

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 :

root@server[#] vi /etc/hosts 

Add the below line  save and quit.


remote : /etc/ssh/sshd_config


open the /etc/ssh/sshd_config file and then locate the entry


GSSAPI options


# GSSAPI options
#GSSAPIAuthentication no
GSSAPIAuthentication yes
#GSSAPICleanupCredentials yes
GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

In the above entries you need to commend the line


GSSAPIAuthentication yes

to disable the reverse mapping authentication for SSH


#GSSAPIAuthentication yes

and then restart the sshd service


That’s all you are done.