where is my ssh log file?

February 10, 2015 941 views

where is my ssh log file ?

root@change:~# cd /var/log
root@change:/var/log# less secure
secure: No such file or directory

1 Answer

See if this line is in your rsyslog.conf file:

[root@console log]# cat /etc/rsyslog.conf | grep -i secure
authpriv.* /var/log/secure

  • Further to this:
    Here is mine:

    Log anything (except mail) of level info or higher. Don't log private authentication messages!

    *.info;mail.none;authpriv.none;cron.none /var/log/messages

    The authpriv file has restricted access.

    authpriv.* /var/log/secure

    Log all the mail messages in one place.

    mail.* -/var/log/maillog

    Log cron stuff

    cron.* /var/log/cron

    Everybody gets emergency messages

    .emerg :omusrmsg:

    Save news errors of level crit and higher in a special file.

    uucp,news.crit /var/log/spooler

    Save boot messages also to boot.log

    local7.* /var/log/boot.log

Have another answer? Share your knowledge.