3

Hi i have installed EGit to my eclipse .

now i am trying to import an existing bitbucket project .

tried steps .

  1. in Eclipse - Window -> prefrerences -> Team -> Git -> Configuration -> Add entry

enter image description here

2.windows -> preferences -> General-> network Coneections -> SSH2 -> Key management - >Generate RSA key . then saved private key . also added the private key in

windows -> preferences -> General-> network Coneections -> SSH2 -> General -> Add private Key

3.in bitbucket

logged in from kanishka@****.com . user name = kanishkapanamaldeniya .

Manage account -> ssh keys -> Add key.

  1. i have not created any repositories my self , but i have access to a repository .

  2. in eclipse File -> import - > GIT -> projects form git -> Clone Uri .

enter image description here

i am getting the following error

enter image description here

I can not understand why is this happening , please help me , i am stuck here of a long time now , thanks in advance :)

4
  • Did you setup your SSH keys in BitBucket? Commented Aug 22, 2014 at 6:37
  • yes .in bitbucket logged in from kanishka@****.com . user name = kanishkapanamaldeniya . Manage account -> ssh keys -> Add key. Commented Aug 22, 2014 at 6:38
  • If this is not your repository, then the owner must give you access to it. Maybe this is the problem. Otherwise ... Everything seems to be correct. Commented Aug 22, 2014 at 6:41
  • Hi i checked the elipse error log and it says !MESSAGE ssh://[email protected]/kanishkapanamaldenya/test.git: conq: repository does not exist. but there is a repository called 'test' and also i can access it , but i did not created it . Commented Aug 22, 2014 at 7:05

4 Answers 4

1

An ssh url would never include a user account to access the bitbucket server. It generally use a service account like 'git' (as seen in "Troubleshoot SSH Issues")

[email protected]:accountname/reponame.git
# or
ssh://[email protected]/accountname/reponame.git

In your case, if you have under your account a test.git repo:

ssh://[email protected]/kanishkapanamaldenya/test.git

That means:

  • The username for the "authentication" part would be git
  • The 'password' would be the passphrase associated with your private key (if you created it passphrase-protected) or empty (if your private key isn't passphrase protected)

This presuppose that you have an account kanishkapanamaldenya on BitBucket, and that you have a Git repo name test.git in BitBucket.
Eclipse itself won't create those two for you. It will simply push to it or pull from it.

A path like "test/test.git" wouldn't be a valid BitBucket path anyway.
It is accountname/reponame.git.
If your account name on BitBucket is kanishkapanamaldenya, then the right path would be kanishkapanamaldenya/test.git.

Sign up to request clarification or add additional context in comments.

9 Comments

Hi , but then the user will be git , when try to chane my user ,automaticallly the ssh path changes . git becomes kanishkapanamaldeniya , so finally it becomes ssh://[email protected]/kanishkapanamaldenya/test.git
@KanishkaPanamaldeniya that is because you are mixing https authentication and ssh. Don't put a username/password.
@KanishkaPanamaldeniya and "test/test.git" wouldn't be a valid BitBucket path anyway. It is accountname/reponame.git. If your account name on BitBucket is kanishkapanamaldenya, then the right path would be kanishkapanamaldenya/test.git
please check my 2 nd screen shot in the question , in that i hae seleced the protocol as SSH , but still it requires user and a password :(
@KanishkaPanamaldeniya then the user would be 'git', and the 'password' would be the passphrase associated with your private key (if you created it passphrase-protected) or empty (if your private key isn't passphrase protected)
|
1

what worked for me was changing the network connection setting from manual to direct. Window->Preferences->General->Network connections->Active Provider->direct

Comments

0

And, the same error many years later I fixed it by changing git HTTP client: In eclipse: Window->Preferences->Version Control->Git->HTTP client (I've set it to Java built-in HTTP)

Comments

0

Exact same issue here, just needed to set a new "App Password" in Bitbucket: https://bitbucket.org/account/settings/app-passwords/

That solved it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.