Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Log error message on wrong passphrase #10

Open
mchubby opened this issue Feb 6, 2023 · 0 comments
Open

Request: Log error message on wrong passphrase #10

mchubby opened this issue Feb 6, 2023 · 0 comments

Comments

@mchubby
Copy link

mchubby commented Feb 6, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant