I'm attempting to turn on logging inside OpenSSH running in an Alpine Docker container.
I made sure to install rsyslog and start the daemon with /usr/sbin/rsyslogd.
My sshd logging settings are as follows:
SyslogFacility AUTH LogLevel VERBOSE After making the configuration change I kill the sshd process and restart it with /usr/sbin/sshd -f /etc/ssh/sshd_config.
I then ssh into the localhost and exit. I'm assuming that I should be seeing a /var/log/auth.log, but no such file appears.
rsyslogto catch these messages? Do you havejournaldin container?auth,authpriv.* /var/log/auth.log. Currently this line is in the default configurationauthpriv.* /var/log/secure, but that does not trigger any logging. I don't think alpine has a journald package. At least runningapk add journalddoes not work .../var/log/auth.loggenerated.authpriv.* /var/log/securetoauth,authpriv.* /var/log/auth.log.