Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

trouble getting started on Windows

Chris
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2019

Hi,

Total bitbucket newby here trying to get started on Windows and not finding the Bitbucket
documentation to be very helpful. Is there a step-by-step tutorial anywhere? I want to use
git command line, and I assume that I have to use SSH to authenticate (but not even shure about that).
I use Google to login to Bitbucket via browser.

Note that myorg and myrepo below are just examples and not the actual names.


I setup an SSH key following instructions at

https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html

Last step was to run

ssh -T git@bitbucket.org

which I did, and got message

logged in as myorg.

You can use git or hg to connect to Bitbucket. Shell access is disabled.


Now this page

https://confluence.atlassian.com/bitbucket/clone-a-repository-223217891.html

shows clone command as

git clone ssh://git@bitbucket.org:teamsinspace/documentation-tests.git

When I get the command from the butbucket repo page, it is of the format

git clone git@bitbucket.org/myorg/myrepo.git


I'll try with and without the ssh://


>git clone git@bitbucket.org/myorg/myrepo.git
Cloning into 'myrepo'...
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

>git clone ssh://git@bitbucket.org/myorg/myrepo.git
Cloning into 'myrepo'...
ssh: Could not resolve hostname bitbucket.org:myorg: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


Clearly I'm missing some step or an argument to the git clone command.

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2019

Hello Chris and welcome to the Community!

Thank you for providing great amounts of detail along with the steps and commands you used to get to where you’re at now. From the information you sent I want to focus on a specific issue I see that we need to resolve first.

The response of “git@bitbucket.org: Permission denied (publickey).” is telling us there is an issue with your SSH connection or key. Further information on this message is as follows:

When attempting to clone, push, or pull over SSH with Git or Mercurial, you may receive one of these messages if Bitbucket couldn't authenticate with the keys that your SSH agent offered.

There are multiple steps to run through and check to ensure your SSH keys are properly set up and working as expected. I would like to list those steps here, but there are far too many and may become out-dated so I will refer to the documentation for this: Troubleshoot SSH issues

Please walk through those troubleshooting steps for your SSH issues. If you get caught up again please reach out so we can help get you back on track.

Regards,
Stephen Sifers

Chris
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2019

Thanks for the link - but it really wasn't helpful. As you said "there are multiple steps". How about pointing me at a "how-to setup SSH for Windows" Gotta do that first before I can "troubleshoot".

Like Stephen Sifers likes this
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 31, 2019

Hello Chris,

Thanks for the feedback and clarification. From your answer, I assumed you already went through the setup guide for SSH keys and didn’t want to ask you to repeat what you might have already completed. Per your ask, here is the guide for setting up and SSH key; Set up an SSH key (see Set up SSH for Git on Windows)

Please note this will be applied to the specific machine you use to generate your SSH keys. For each machine, you wish to use an SSH connection you will need to repeat this process.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events