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

intermittent key exchange failures #18

Closed
shikhar opened this issue Jun 18, 2011 · 2 comments
Closed

intermittent key exchange failures #18

shikhar opened this issue Jun 18, 2011 · 2 comments

Comments

@shikhar
Copy link
Contributor

shikhar commented Jun 18, 2011

Reported by several people. Non-deterministic, but can be reproduced by trying to connect in a loop loads of times.

net.schmizz.sshj.transport.TransportException: [KEY_EXCHANGE_FAILED] KeyExchange signature verification failed
    at net.schmizz.sshj.transport.kex.AbstractDHG.next(AbstractDHG.java:156)
    at net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:372)
    at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:475)
    at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:127)
    at net.schmizz.sshj.transport.Decoder.received(Decoder.java:195)
    at net.schmizz.sshj.transport.Reader.run(Reader.java:72)
shikhar added a commit that referenced this issue Jun 18, 2011
@ghost ghost assigned shikhar Jun 18, 2011
@shikhar
Copy link
Contributor Author

shikhar commented Jun 18, 2011

The bug was introduced in 8e9a773 according to git-bisect

shikhar added a commit that referenced this issue Jun 19, 2011
Need to explicitly tell the BigInteger constructor that K (generated secret) is a positive number.
@shikhar
Copy link
Contributor Author

shikhar commented Jun 19, 2011

in 0.4.1-SNAPSHOT

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