-
-
Notifications
You must be signed in to change notification settings - Fork 302
Algorithm negotiation fail on pull from remote #568
Description
Hi, I'm trying to clone a password store repository using ssh public key authentication (from a hardened ssh server, meaning cryptos that are considered unsafe are not supported). However, upon pulling from the server, the app shows a dialog with a TransportException
and the message "Algorithm negotiation fail":
I've tried both the latest version from the F-Droid store (1.3.2) and latest commit (b9e3967
) built with Android Studio. Both yield the same error message. I've also upgraded JGit to 5.5.1, hoping that would solve it, but sadly it doesn't.
The stack trace below seems to suggest that the key exchange between client and server didn't succeed (that's what I conclude from receive_kexinit
anyway). Could it be that Jsch does not support modern key exchange algorithms such as diffie-hellman-group14-sha256?
11-11 20:55:52.551 8306 9194 W System.err: org.eclipse.jgit.api.errors.TransportException: ssh://****: Algorithm negotiation fail
11-11 20:55:52.551 8306 9194 W System.err: at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:255)
11-11 20:55:52.551 8306 9194 W System.err: at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:296)
11-11 20:55:52.551 8306 9194 W System.err: at com.zeapo.pwdstore.git.GitAsyncTask.doInBackground(GitAsyncTask.java:68)
11-11 20:55:52.551 8306 9194 W System.err: at com.zeapo.pwdstore.git.GitAsyncTask.doInBackground(GitAsyncTask.java:23)
11-11 20:55:52.551 8306 9194 W System.err: at android.os.AsyncTask$2.call(AsyncTask.java:333)
11-11 20:55:52.551 8306 9194 W System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
11-11 20:55:52.551 8306 9194 W System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
11-11 20:55:52.551 8306 9194 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
11-11 20:55:52.551 8306 9194 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
11-11 20:55:52.551 8306 9194 W System.err: at java.lang.Thread.run(Thread.java:764)
11-11 20:55:52.552 8306 9194 W System.err: Caused by: org.eclipse.jgit.errors.TransportException: ssh://****: Algorithm negotiation fail
11-11 20:55:52.552 8306 9194 W System.err: at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:191)
11-11 20:55:52.552 8306 9194 W System.err: at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:140)
11-11 20:55:52.552 8306 9194 W System.err: at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:280)
11-11 20:55:52.552 8306 9194 W System.err: at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:170)
11-11 20:55:52.552 8306 9194 W System.err: at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:138)
11-11 20:55:52.552 8306 9194 W System.err: at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:124)
11-11 20:55:52.552 8306 9194 W System.err: at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1292)
11-11 20:55:52.552 8306 9194 W System.err: at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:244)
11-11 20:55:52.552 8306 9194 W System.err: ... 9 more
11-11 20:55:52.552 8306 9194 W System.err: Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail
11-11 20:55:52.552 8306 9194 W System.err: at com.jcraft.jsch.Session.receive_kexinit(Session.java:590)
11-11 20:55:52.552 8306 9194 W System.err: at com.jcraft.jsch.Session.connect(Session.java:320)
11-11 20:55:52.552 8306 9194 W System.err: at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:145)
11-11 20:55:52.552 8306 9194 W System.err: ... 16 more