Issue
Hi i have installed EGit to my eclipse .
now i am trying to import an existing bitbucket project .
tried steps .
- in Eclipse - Window -> prefrerences -> Team -> Git -> Configuration -> Add entry
src="https://i.stack.imgur.com/N3ZMx.png" alt="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.
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 :)
Solution
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
.
Answered By - VonC
Answer Checked By - Dawn Plyler (JavaFixing Volunteer)