The first time I entered the password for a pull pull request from Github with Eclipse (EGit) I probably mistyped it. Now it automatically uses this password and everytime I try to make pull / fetch or push to upstream I get a not authorized error. But I can't find anywhere how to fix the wrong credentials. Anyone who knows?
If I manually terminate the SSH/plink process on the client side while Eclipse hang, git pull works. It also works if the environment variable GIT_SSH is cleared and the OpenSSH key is stored directly in Eclipse.
I discovered that if I set up the two-step authentication in github, Eclipse isn't able to connect to Github-which makes sense because the two-step authentication in github requires you to input a number from an SMS (and Eclipse wouldn't have this information).
Apparently, eGit does not seem to be able to handle this. For example, if your username on your local machine is 'john', and the account you are using on the server is named 'git', egit simply fails to connect (for me anyways). The only work around I have found is to make sure you have identical usernames in both the local machine and the server.
In Eclipse open Window->Preferences->General->Network->SSH2 and set your ~/.ssh as SSH Home. After that go to Key Management tab and Load existing Key - set here your private key in ~/.ssh. After that you can push your project to Github (but I set ssh protocol, not git+ssh).
I think Preferences > General > Security > Secure Storage > Clear Passwords
which clears everything. Or you can also selectively delete stuff from <user directory>\.eclipse\org.eclipse.equinox.security\secure_storage
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With