where is the logfile?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm using openssh for remote administration, but I can't find the
logfile on the server machine.
I've tried to look in /var/log/ but there isn't anything for ssh.
What may I write in sshd_config for logging events and specify logfile
Thank you.

Re: where is the logfile?

Quoted text here. Click to load it

sshd logs via the syslog facility, the configuration of which is
typically in  /etc/syslog.conf    Usually folks have most things
logged to /var/log/messages   so that's a good first place to look.

In sshd_config I believe these settings dictate how syslog sees the
messages, for example:
SyslogFacility AUTH
LogLevel INFO

Then in syslog.conf you could set a separate file for logging auth
facility messages with a line like

auth.info               /var/log/auth_sshd.log

Best Regards,
Todd H.
http://www.toddh.net /

Re: where is the logfile?

Thank you very much!

Site Timeline