SSH DNS Checks

From KlavoWiki
Revision as of 04:28, 28 May 2009 by David (Sọ̀rọ̀ | contribs) (Created page with 'Every time you log onto a Linux computer it will try to resolve the last SSH connection by trying to do a reveres DNS lookup of the IP address of the computer that last made a SS...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Every time you log onto a Linux computer it will try to resolve the last SSH connection by trying to do a reveres DNS lookup of the IP address of the computer that last made a SSH connection. This can be useful as if you notice a logon that should not have existed you can take action.

In some scenarios you may prefer to disable the DNS reverse lookup at SSH logon either because DNS may not be available or it may be slowing the logon process.

To disable the SSH DNS lookup edit the file:
/etc/ssh/sshd_config and change

#UseDNS yes

to

UseDNS no