Bug #604
sshd is not reporting on 'AUTH' facility
| Status: | Closed | Start date: | 04/28/2011 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | Aports | |||
| Target version: | Alpine 2.3.0 |
Description
Looking at sshd default config you will notice that SyslogFacility is commented out and indicates that sshd is reporting as 'AUTH'.
But sshd is not reporting as 'AUTH'! Not even when you uncomment the 'SyslogFacility AUTH' section in /etc/ssh/sshd_config.
# grep -i facility /etc/ssh/sshd_config #SyslogFacility AUTH
The problem can be recreated with:
# apk version -v | grep -i "^openssh" openssh-client-5.6_p1-r1 = 5.6_p1-r1 openssh-5.6_p1-r1 = 5.6_p1-r1
There is no problem with (aka. works fine in):
# apk version -v | grep -i "^openssh" openssh-client-5.2_p1-r3 < 5.3_p1-r0 openssh-5.2_p1-r3 < 5.3_p1-r0
There is no problem with (aka. works fine in):
# apk version -v | grep -i "^openssh" openssh-client-5.3_p1-r0 = 5.3_p1-r0 openssh-5.3_p1-r0 = 5.3_p1-r0
This is how I found the bug:
On a host that is supposed to gather all logs
apk add sysklogd
Make sure that /etc/syslog.conf has the following record:
auth,authpriv.* /var/log/auth.log
Make sysklogd listen to other hosts (/etc/conf.d/sysklogd):
SYSLOGD="-m 0 -r"
Start tailing /var/log/auth.log
Next we need to tell the other linux boxes to send their logs to this 'logging server'.
(If the remote box is using sysklogd then add the following to /etc/syslogd.conf)
*.* @IP.TO.LOG.SRV
The logserver still gets all logs (they end up in /var/log/syslog), so I get the sshd logs to the logserver, they just dont end up in the right place because the LogFalility (or something else) is wrong.
I assume you should be able to do this debugging with a single box, but I described how I noticed the error just in case the error is related to remote logging.
History
Updated by Jeff Bilyk 9 months ago
- Category set to Aports
- Assignee set to Jeff Bilyk
- Target version set to Alpine 2.3.0
- % Done changed from 0 to 50
This issue is fixed on current edge with versions:
Installed: Available:
openssh-5.8_p2-r1 = 5.8_p2-r1
Mika, was this issue in the 2.2.x branch? If so, can you test with 5.8 in that branch (which is now latest available)? Thanks.
Updated by Jeff Bilyk 9 months ago
- Status changed from New to Feedback
Should have set this to feedback before...
Updated by Mika Havela 9 months ago
- Status changed from Feedback to Resolved
- % Done changed from 50 to 100
In 1.10 branch I have 'openssh-5.3_p1-r0' and this is a non-functional version.
In 2.2 branch I now have 'openssh-5.8_p2-r0' and I can confirm that this version works as it is supposed to.
I tested 'openssh-5.8_p2-r1' (from 'edge') and it is also working as supposed to.
So 2.2 branch, and edge is OK now.
Thanks!
Updated by Natanael Copa 8 months ago
- Status changed from Resolved to Closed