[Bug 2720] New: Include username in "Permission denied (publickey)." message

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue May 23 08:45:43 AEST 2017


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

            Bug ID: 2720
           Summary: Include username in "Permission denied (publickey)."
                    message
           Product: Portable OpenSSH
           Version: 7.2p2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: jg at jguk.org

Can SSH include the username in the following message? It was the only
reason login failed, but wasn't clear.

Currently this is the behaviour:
$ ssh -i "pass.pem" myserver123.amazonaws.com
Permission denied (publickey).

It of cause works if I do:
ssh -i "pass.pem" ubuntu at myserver123.amazonaws.com

What I would like to see is:

$ ssh -i "pass.pem" myserver123.amazonaws.com
juser at myserver123.amazonaws.com
Permission denied (publickey).

This means, we would realise that "juser" didn't have an account on
that VM at Amazon.

Sound reasonable?

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


More information about the openssh-bugs mailing list