-
Notifications
You must be signed in to change notification settings - Fork 602
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
net.schmizz.sshj.transport.TransportException: Could not verify ssh-ed25519
host key with fingerprint
#635
Comments
I've got this problem, too |
Me to using [sshj-0.31.0.jar:0.31.0], but in |
Without more information like logs or code for a minimal example, it's very hard to give precise help. But I'll try. 😄 If host verification fails but you don't actually care about host verification, then you can turn it off by adding If you care about host verification and want to use your If you can connect with ssh but get the given exception with sshj, the problem is most likely that ssh and sshj negotiate different key algorithms with the remote server. Try connecting with You can influence the key algorithm that sshj negotiates with the remote server with |
(hierynomus#642, hierynomus#635... 10? issues) Try to find the Algorithm that was used when a known_host entry was created and make that the first choice for the current connection attempt. If the current connection algorithm matches the algorithm used when the known_host entry was created we can get a fair verification.
* Prefer known algorithm for known host (#642, #635... 10? issues) Try to find the Algorithm that was used when a known_host entry was created and make that the first choice for the current connection attempt. If the current connection algorithm matches the algorithm used when the known_host entry was created we can get a fair verification. * Add support for multiple matching hostkeys, in configuration order Co-authored-by: Bernie Day <[email protected]> Co-authored-by: Jeroen van Erp <[email protected]>
The same error here with me, but as @hpoettker said before, just add this before connecting:
It was enough to solve! |
net.schmizz.sshj.transport.TransportException: Could not verify
ssh-ed25519
host key with fingerprintat net.schmizz.sshj.transport.KeyExchanger.verifyHost(KeyExchanger.java:210)
at net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:368)
at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:517)
at net.schmizz.sshj.transport.Decoder.decodeMte(Decoder.java:159)
at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:79)
at net.schmizz.sshj.transport.Decoder.received(Decoder.java:231)
at net.schmizz.sshj.transport.Reader.run(Reader.java:60)
===2020-09-24 20:36:22.566 [reader] INFO net.schmizz.sshj.transport.TransportImpl Line:205 - Disconnected - HOST_KEY_NOT_VERIFIABLE
it's wrong, how to solve, help me, thanks
The text was updated successfully, but these errors were encountered: