On Thu, 19 Apr 2001, Rehan Ahmed wrote:
> Hi All,
> Can any guru tell me if I wanna ssh logs in /var/adm/messages, what should I
> do. Right now, My ssh2 is working fine but no logs.
> Thanx in advance,
> Regards,
> Rehan
Edit your sshd_config (installed on /usr/local/etc by default).
Look for the lines SyslogFacility and LogLevel. The following
is a portion of my own sshd_config.
# Logging
SyslogFacility AUTH
LogLevel DEBUG
Then edit your /etc/syslog.conf (if necessary). On my machine,
I have this snippet of syslog.conf:
*.=debug /var/log/debug.log
auth.* /var/log/auth.log
The 2 lines above will dump all ssh connections to /var/log/auth.log
and /var/log/debug.log
Kill and restart syslogd and sshd.
--------------------
"The best players, I think, are always the ones who remember
their losses, because they remember the pain and they hate it."
-- Billie Jean King