ssh connection using an ECDSA key fails on second attempt (auth failed) [message #1791164] |
Mon, 25 June 2018 08:00  |
Eclipse User |
|
|
|
Connecting to github.com with an ECDSA key (256 bit) succeeds for the first attempt after Eclipse start but fails for subsequent attempts (message is "auth failed"). Restarting Eclipse shows consistent behavior.
The same works fine with an RSA key.
I am using Mars and Neon, both show the same behavior. Neon is on Egit 4.6.1.
What baffles me is that it works with ECDSA when connecting the first time but not on subsequent connects. It'd be nice to have support for ECDSA as RSA is on retreat. As well an equivalent to "ssh -v -T <server>" in Eclipse which shows the verbose output would help in such situations.
Cheers
Richard
|
|
|
Re: ssh connection using an ECDSA key fails on second attempt (auth failed) [message #1791200 is a reply to message #1791164] |
Mon, 25 June 2018 17:49   |
Eclipse User |
|
|
|
I recommend that you install EGit nightly. It works for sure in Neon, and it should work in Mars, too. EGit 4.6.1 is fairly old, and there have been many improvements since then, especially in ssh connection code. Be aware that since EGit4.9, we do consider your ~/.ssh/config file; earlier versions didn't do so properly.
If the problem then persists:
First: what's in the error log? There should be a log entry with a stack trace there, which might help us figure out what goes on. Use global menu "Windows->Show Views" to open the error log view, then find the log entry, double-click it to get more information, and post the stack trace here.
Second, EGit nightly contains additional debug tracing for the ssh library used; those traces might help us to figure out what went wrong, too. To enable those traces, go to "Preferences->General->Tracing", check the "Enable tracing" checkbox and then under "Git" enable "org.eclipse.egit.core/debug" and "org.eclipse.egit.code/debug/core/jsch". Make sure the trace goes to a file. Then re-try the operation and post the resulting trace here.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04482 seconds