Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot fetch or pull from Github with Eclipse (EGit) because wrong password is stored

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?

enter image description here

like image 646
mspir Avatar asked Jul 31 '12 15:07

mspir


People also ask

Does git pull work with Eclipse hang?

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.

Why can't eclipse connect to GitHub-?

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).

Why can't Egit connect to my local machine?

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.

How to SSH into eclipse from Git?

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).


1 Answers

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

like image 150
Deepak Azad Avatar answered Oct 22 '22 00:10

Deepak Azad