Skip to content

Why is ecdsa algorithm not selected (PubkeyAcceptedAlgorithms)? #810

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

Closed
Stefan4112 opened this issue Apr 9, 2025 · 1 comment
Closed

Comments

@Stefan4112
Copy link

I have following log:

11:55:15.158 [main ] [DEBUG] PubkeyAcceptedAlgorithms = ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-dss,ssh-rsa
11:55:15.158 [main ] [DEBUG] PubkeyAcceptedAlgorithms in server-sig-algs = [ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, rsa-sha2-512, rsa-sha2-256, ssh-rsa]
11:55:15.159 [main ] [DEBUG] PubkeyAcceptedAlgorithms not in server-sig-algs = [ssh-ed25519, ssh-dss]
11:55:15.172 [main ] [DEBUG] rsa-sha2-512 preauth success
11:55:15.989 [main ] [DEBUG] rsa-sha2-512 auth failure
11:55:16.002 [main ] [DEBUG] rsa-sha2-256 preauth success
11:55:16.346 [main ] [DEBUG] rsa-sha2-256 auth failure
11:55:16.360 [main ] [DEBUG] ssh-rsa preauth success
11:55:16.943 [main ] [DEBUG] ssh-rsa auth failure
11:55:16.943 [main ] [DEBUG] ssh-rsa cannot be used as public key type for identity myprivate.key

Why are all ecdsa algorithms skipped? They are supported by client and server. Both prefer them over rsa.

@norrisjeremy
Copy link
Contributor

Because you haven't loaded an ECDSA auth key into JSch.

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

2 participants