You are not logged in.

#1 2010-12-02 18:43:23

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 226

[solved] sshd logs :: where ?

Hello,

I can't seem to find the sshd logs hmm
Where are they ?
Do I have to configure something in /etc/syslog-ng.conf ?

Thanks.

Last edited by Kooothor (2010-12-02 22:34:50)


ktr

Offline

#2 2010-12-02 18:48:55

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [solved] sshd logs :: where ?

/var/log/auth.log

Offline

#3 2010-12-02 22:24:02

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: [solved] sshd logs :: where ?

If you want to have separate log files for sshd, you can add the following line in /etc/syslog-ng.conf, and then restart syslog-ng.

destination d_sshd { file("/var/log/sshd.log"); };
filter f_sshd { program("sshd"); };
log { source(src); filter(f_sshd); destination(d_sshd); };

You could then add the file /var/log/sshd.log to the list of file in /etc/logrotate.d/syslog-ng.

Of course, this all presume that you are using syslog-ng as your syslog daemon...

Offline

#4 2010-12-02 22:34:34

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 226

Re: [solved] sshd logs :: where ?

Thank you both smile


ktr

Offline

Board footer

Powered by FluxBB