[Bug 2709] New: Permission Error logged at Debug

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sat Apr 15 05:44:22 AEST 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2709

            Bug ID: 2709
           Summary: Permission Error logged at Debug
           Product: Portable OpenSSH
           Version: 7.2p2
          Hardware: 68k
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: clay.gerrard at gmail.com

Took me an extra few minutes to get my aws instance setup because the
error message I needed was logged at DEBUG instead instead of >INFO

https://github.com/openssh/openssh-portable/blob/2f2ffa4fbe4b671bbffa0611f15ba44cff64d58e/auth.c#L578

The users authorized_keys file was 700 and had the right key - but
owned by root :P

The client show'd it was trying the right private key, sshd in auth.log
just said:

Apr 14 19:02:49 ip-172-30-0-16 sshd[1638]: Connection closed by
38.140.31.130 port 59865 [preauth]

When I bumped the log level and restarted sshd it was obvious:

Apr 14 19:24:37 ip-172-30-0-16 sshd[2756]: debug1: Could not open
authorized keys '/home/clayg/.ssh/authorized_keys': Permission denied

<shrug>

Not complaining!  Very glad the log message was there at debug!

Thanks!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list