where is my ssh log file?

Posted February 10, 2015 13.7k views

where is my ssh log file ?

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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