Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Egit Cannot Log Into Bitbucket

All was working fine until I let automatic updates run in Spring Tool Suite (Eclipse). One of the updates was to Egit. Now, when I try to pull a repository or interact with any of the team functions, I get the following error:

[email protected]:my-company/my-repo.git: Cannot log in at bitbucket.org:22

I've tried every other solution I can think of and find online, including reverting to my previous configuration before the update, but nothing seems to work. Does anyone have any suggestions as to what the problem might be?

like image 659
pconrey Avatar asked Feb 05 '21 18:02

pconrey


People also ask

How do I connect to a remote Git repository in Eclipse?

Go to the "Git Repositories" view, open the tree of the repository you want, right-click on "Remotes" and select "Create Remote". Remote name is the alias, and the url is specified in the second step of the wizard. Brilliant. Thanks!


2 Answers

Seems to be a known issue with the recent EGit release in eclipse 2021-03

Known affected git servers: bitbucket.org, AWS Code Commit, Azure DevOps

Work-arounds:

  • Install EGit nightly, or
  • Use an ed25519 key, or an ECDSA key, or
  • Use an external SSH via environment variable GIT_SSH.

I use the last

$ GIT_SSH=/usr/bin/ssh eclipse
like image 112
dan carter Avatar answered Oct 10 '22 03:10

dan carter


It's probably problem with Eclipse EGit plugin v. 5.11. It is solved in the May nightly build of the plugin. You have to install it, because it is the last version at present time. In Spring Tool Studio (Eclipse) I had to do "Help / Check for updates" in addition to the instructions.

like image 45
Fofola Avatar answered Oct 10 '22 04:10

Fofola