Skip to content

Request: Log error message on wrong passphrase #10

@mchubby

Description

@mchubby

Currently, authentication fails when providing a wrong passphrase to unlock a private key.
However, it only fails at connection time with cryptic message "Failed: Unknown; Exhausted available authentication methods" in the job output.

Toggling verbose logging on says
[net.schmizz.ssj.userauth.method.AuthPublickey] Attempting authentication using com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyV1KeyFile@some-identifier

Maybe prior to that, one of the methods to read the private/public key, such as readDecodedKeyPair() should be called at least once in the initialization process to ensure the key pair can actually be used with the provided passphrase?
And then, log an error in the log output.

Or, file an upstream issue to obtain more helpful messages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions