Public key authentication only possible with host key types
See original GitHub issueSince 9671352bdaaf13f00681866c09332b1e88a113fd, it seems that public key authentication can only succeed if the key type is also a host key type supported by the server.
I believe that the root cause of this is https://github.com/hierynomus/sshj/commit/9671352bdaaf13f00681866c09332b1e88a113fd#diff-521b24d9ed9094555c19f59ffa14e862R235-R239, where the “signature algorithms” (i.e. server_host_key_algorithms
per the SSH spec) are used to populate the factory that is later used to send and sign with public keys.
I would think that that the list of KeyAlgorithm
factories should rather be populated directly from the config as it does not require negotiation with the server. KeyedAuthMethod.java
would then need to be changed to use those factories instead of asking Transport
for them.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
v0.30.0 is released, I still need to update the Release notes, but wanted to let you know.
Op vr 14 aug. 2020 om 12:40 schreef Fabian Henneke <notifications@github.com
Thanks for the heads-up!