[CentOS] Make sshd log IP addresses, not hostnames

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

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

I assume this situation is feasible...

* 10.10.10.10 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 10.10.10.20

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.

Thanks,
Scott