Open VinTz1 opened 7 years ago
Hi, thanks for filing the issue. Are you using a ssh key with a password on it? If so unfortunately MGit doesn't yet support that, though its a feature a lot of people have asked for so its at the top of my todo list.
Is this a duplicate of #66 ?
Still suffering from this on v1.5.5.1 from F-Droid.
Using Android 7.1.2 from LineageOS v14.1.
The problem happens with a repo using SSH with user and password.
I installed MGit along SGit and got the same repo to be used by both apps.
SGit can run a pull perfectly. MGit cannot. It pops up the "user" and "password" request dialog and, after writing them, it spits an error and offers to send a crash report (which I sent, anonymizing the URL of my repo).
Could you please provide that report here?
USER_COMMENT=
ANDROID_VERSION=7.1.2
APP_VERSION_NAME=1.5.5.1
BRAND=Xiaomi
PHONE_MODEL=2014813
CUSTOM_DATA=
STACK_TRACE=org.eclipse.jgit.api.errors.TransportException: ssh://xxxxxxxxx/xxx.git: Auth cancel
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:261)
at me.sheimi.sgit.repo.tasks.repo.PullTask.pullRepo(PullTask.java:99)
at me.sheimi.sgit.repo.tasks.repo.PullTask.doInBackground(PullTask.java:30)
at me.sheimi.sgit.repo.tasks.repo.PullTask.doInBackground(PullTask.java:15)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://xxxxxxxxx/xxx.git: Auth cancel
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:136)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
... 10 more
Caused by: com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Session.java:518)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 17 more
org.eclipse.jgit.errors.TransportException: ssh://xxxxxxxxx/xxx.git: Auth cancel
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:136)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:261)
at me.sheimi.sgit.repo.tasks.repo.PullTask.pullRepo(PullTask.java:99)
at me.sheimi.sgit.repo.tasks.repo.PullTask.doInBackground(PullTask.java:30)
at me.sheimi.sgit.repo.tasks.repo.PullTask.doInBackground(PullTask.java:15)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Session.java:518)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 17 more
com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Session.java:518)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:136)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:261)
at me.sheimi.sgit.repo.tasks.repo.PullTask.pullRepo(PullTask.java:99)
at me.sheimi.sgit.repo.tasks.repo.PullTask.doInBackground(PullTask.java:30)
at me.sheimi.sgit.repo.tasks.repo.PullTask.doInBackground(PullTask.java:15)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
If you have more than 1 set of ssh credentials this might be fixed with #492
If you have more than 1 set of ssh credentials this might be fixed with #492
As commented, the problem is with username and password, not with private keys.
I'm also seeing this issue, on version 1.5.10 from the Play Store
On a server:
On phone:
ssh://example.com/path/to/repo
repo
(auto filled)Clone failed
\n ssh://example.com/path/to/repo: Auth cancel
The same issue for me with MGit from F-Droid.
Same here....
I'm seeing the same issue, with the steps described by @mwberry, using a fresh version 1.7.0 from F-Droid on a Note 9 with Android 10 (and One UI 2.5).
This is a FAQ due to GitHub no longer supporting password authentication with SSH, if you are facing a different problem please open a new issue.
This is a FAQ due to GitHub no longer supporting password authentication with SSH, if you are facing a different problem please open a new issue.
I'm not using GitHub repo in this instance. Actually, none of the comments (nor the original report) mention GitHub, so I don't think the FAQ is necessarily relevant here. I can open a new issue, but the report will basically be the same as what's described in this one.
@maks no, this issue is not about GitHub no longer supporting password authentication with SSH.
Please, consider reopening this issue or, at least, providing a different reason for closing this.
@Man-Chicken or @tanty are you able to provide a publicly accessible git remote where this is happening? Otherwise is very hard to even know how to reproduce the issue.
@Man-Chicken or @tanty are you able to provide a publicly accessible git remote where this is happening? Otherwise is very hard to even know how to reproduce the issue.
@maks No, I've encountered this using a private repo. The "on phone" steps that @mwberry are precisely what I'm doing on the phone. As far as repo setup goes, it's straight forward creation of a repo for a preexisting directory with content. To be precise:
On server:
cd
into that directorygit init --bare
On a desktop machine:
cd
into an existing "travel" directory, which has one sub-directory, "holbox-2024", containing one text file, "holbox-2024.md" (guess where I'm travelling this year :wink: )git init
git checkout -b main
git add .
git commit -m "Message goes here"
git remote add origin <url of repo created above>
git push -u origin main
I hope that's helpful!
Hello, I'm trying to clone a repository that is accessible throw ssh (I can connect to it with "connectBot") with username and password authentication. However when It try to clone it I get the message: "Exception caught during execution of fetch command" without any further information. Is this a bug or something that i'm doing wrong? Thanks.