How to have sshd log IP numbers instead of reverse lookups

Noel Jones noeldude at
Mon Nov 28 00:02:26 GMT 2005

On 11/24/05, James Long <list at> wrote:
> I was looking at /var/log/auth.log and saw an entry of the form:
> Nov 24 18:41:37 ns sshd[58083]: error: PAM: authentication error for username from
> I wish to have an IP number logged where sshd has instead logged
> ''
> Reading sshd's man page and sshd_config's man page, I don't find any
> way to control this.
> Since '' could have multiple IP numbers, how can I change
> sshd's configuration to log the IP number from whence the
> authentication error originated?

I believe adding
UseDNS no
to sshd_config will do what you want.

Noel Jones

More information about the freebsd-questions mailing list