Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Push gives Too many authentication failures, but works from CLI

On Sat, Mar 29, 2025 at 4:16 AM Roger Parkinson via egit-dev <egit-dev@xxxxxxxxxxx> wrote:
This is a minor problem for me because I have a workaround but I would like to tidy things up.

I have a remote repo which I can push and pull without problems from the command line. So the git remote stuff is working just fine. When I do `git remote -v` I see this:

```
origin    myuser@xxxxxxxxxxxx:/home4/myuser/mysite.git (fetch)
origin    myuser@xxxxxxxxxxxx:/home4/myuser/mysite.git (push)
```

When I try and push from within Eclipse it fails with Authentication error and I don't know why. Specifically:

```
Can't connect to any repository: myuser@xxxxxxxxxxxx:/home4/myuser/mysite.git (myuser@xxxxxxxxxxxx:/home4/myuser/mysite.git: Too many authentication failures)
```

I actually have two remote repositories. One is on an in-house machine on my local network and that works just fine, the other (which gives an error from Egit) is on BlueHost..

I found [this post in StackOverflow](https://stackoverflow.com/a/18562899) which looked promising but it refers to Window > Show View > Other > Git Repositories. On my system that last option is greyed out.

My Eclipse version is 4.33.0. Egit is 6.7.0 which has been pulled from the Eclipse Marketplace. My repositories (working and non working) were created by a `git init --bare` command, so this isn't Github or similar.

6.7.0 is old. Can you try the latest version 7.2.0 ?
 
I have ssh keys set up on the remote machines, and a command line `git push` works fine (which is why this is a minor problem).

But I would like to get Egit pushing correctly.

Did you select which ssh keys to use under Settings > General > Network Connections > SSH2 ?
 
When I try to push from Egit on the non-working instance it fails but it also messes things up. The next command line `git push` fails and I have to do a `git push --set-upstream origin master` to fix it. Does that suggest Egit is using the wrong branch? Possibly because I haven't configured it correctly? I have gone over all the configurations between working and non working and they are the same.

I saw something about there being a problem with a leading slash on the URL so I changed the origin reference to:

```
origin    myuser@xxxxxxxxxxxx:mysite.git (fetch)
origin    myuser@xxxxxxxxxxxx:mysite.git (push)
```

But I still get the same error under Egit, and it still works fine from the command line.

Thanks for any help


--
Roger Parkinson

_______________________________________________
egit-dev mailing list
egit-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/egit-dev

Back to the top