[CentOS] Make sshd log IP addresses, not hostnames

Scott Moseman scmoseman at gmail.com
Mon Jun 22 19:21:36 UTC 2009

Can I adjust the ssh daemon to log IP addresses instead of hostnames?

I assume this situation is feasible...

* attempts to ssh to the server
* reverse dns resolves to "somehost.domain.com"
* ssh daemon logs "somehost.domain.com" in messages
* foward dns on "somehost.domain.com" resolves to

Thus it causes some of my scripts a problem if the DNS resolutions
don't match.  It would be nice if it could just log IP addresses only.


More information about the CentOS mailing list