Suddenly getting "No more authentication methods available" with ssh auth to git repo [message #1800994] |
Thu, 10 January 2019 18:46  |
Eclipse User |
|
|
|
I've had Eclipse installed for quite a while. I upgraded to 2018-12 a few weeks ago. I've had ssh authentication set up for all my git repos (centrally stored in BitBucket Server) for a long time. It's been working perfectly fine.
Today I had to reboot my Windows7 laptop for some automated installations, which happens a few times a month.
I restarted Eclipse and suddenly I'm finding that all of my git repos are failing authentication. I'm seeing this in the log:
!MESSAGE ssh://git@.../....git: No more authentication methods available
!STACK 0
org.eclipse.jgit.api.errors.TransportException: ssh://git@.../.....git: No more authentication methods available
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:254)
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:290)
at org.eclipse.egit.core.op.PullOperation$PullJob.run(PullOperation.java:256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://git@.../.....git: No more authentication methods available
at org.eclipse.jgit.transport.sshd.SshdSessionFactory.getSession(SshdSessionFactory.java:249)
I then went to one of my local repositories in my Cygwin shell and tried a "git pull". This worked perfectly fine.
The only recent change I made that might be related to this is that I installed the Windows version of git, in addition to the Cygwin git. I put it at the end of the PATH. I don't see how that could be affecting this, as Eclipse is using jgit.
|
|
|
Re: Suddenly getting "No more authentication methods available" with ssh auth to git repo [message #1801003 is a reply to message #1800994] |
Thu, 10 January 2019 21:47   |
Eclipse User |
|
|
|
I think I just solved the problem, but I'm not sure what the real problem was.
When I installed 2018-12 a few weeks ago, I thought I noticed a mention of upcoming changes to what the default ssh client would be. I noticed that I was currently set to use JSch, and I thought the release notes said that it would be moving to "Apache MINA", so I decided to change it now and see how it worked. This was working fine for a couple of weeks.
Just now I tried changing that field back to "JSch" and then doing a pull. It worked fine. Just to be sure, I changed it back to "Apache MINA" and tried it again. Still failed. Changed it back to "JSch" and it's working.
I don't know what's going on here.
|
|
|
|
|
|
|
|
|
Re: Suddenly getting "No more authentication methods available" with ssh auth to git repo [message #1805707 is a reply to message #1805096] |
Mon, 22 April 2019 11:32   |
Eclipse User |
|
|
|
We really need more information to get to the bottom of this. Please follow the steps to run jgit with debug logging and post the log or a relevant excerpt somewhere, for instance as attachment to a new bug report in bugzilla.
Also check the location of your SSH config file. JSch always uses ~/.ssh/config (i.e., inside the user's home directory), whereas Apache MINA uses the config file located in the directory specified as "SSH Home" in the Eclipse SSH2 preferences. If that points to somewhere else, Apache MINA might not find your config file, or find a different one.
Also note that the Apache MINA SSH client in EGit/JGit doesn't work with ssh-agent/Pageant (yet).
|
|
|
Re: Suddenly getting "No more authentication methods available" with ssh auth to git repo [message #1805710 is a reply to message #1805707] |
Mon, 22 April 2019 13:41   |
Eclipse User |
|
|
|
Quote:Also check the location of your SSH config file. JSch always uses ~/.ssh/config (i.e., inside the user's home directory), whereas Apache MINA uses the config file located in the directory specified as "SSH Home" in the Eclipse SSH2 preferences. If that points to somewhere else, Apache MINA might not find your config file, or find a different one.
Hmmm... I do have my Eclipse SSH Home set to something non-default. Although I don't actually have a config file in either location.
|
|
|
|
|
|
|
Re: Suddenly getting "No more authentication methods available" with ssh auth to git repo [message #1848888 is a reply to message #1815521] |
Wed, 22 December 2021 10:55   |
Eclipse User |
|
|
|
Timothy Harper wrote on Fri, 04 October 2019 05:40This will set the GIT_SSH environment variable to use the ssh client included with git.
The .profile script gets executed when you start your Git Bash command line
This is my .profile. It will ask you for your password the first time you start the git command prompt, they will remember it from then on until you reboot your computer. Very handy so you don't have to keep entering your password each time you want to do something.
Thank you for your honest reply to us. I got a huge amount of knowledge from you guys. Looking for more threads here
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04733 seconds