Reputation: 17576
Hi i have installed EGit to my eclipse .
now i am trying to import an existing bitbucket project .
tried steps .
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.
i have not created any repositories my self , but i have access to a repository .
in eclipse File -> import - > GIT -> projects form git -> Clone Uri .
i am getting the following error
I can not understand why is this happening , please help me , i am stuck here of a long time now , thanks in advance :)
Upvotes: 3
Views: 3469
Reputation: 2097
Exact same issue here, just needed to set a new "App Password" in Bitbucket: https://bitbucket.org/account/settings/app-passwords/
That solved it.
Upvotes: 0
Reputation: 309
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)
Upvotes: 0
Reputation: 59
what worked for me was changing the network connection setting from manual to direct. Window->Preferences->General->Network connections->Active Provider->direct
Upvotes: 1
Reputation: 1324937
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:
git
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
.
Upvotes: 1