Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Connecting to GitBucket Repository with SSH

Harrison Greeves September 30, 2019

I've generated my SSH key locally and have copied and pasted it into the 'Add key' section in my GitBucket repo. 

However, to verify that my user credentials are synchronized, I need to run the following command: ssh -T git@bitbucket.org.

My question is, what do I put in place of that example URL? I've tried:

ssh -T git@bitbucket.org:greevesh/health_test_api.git

and 

ssh -T https://greevesh@bitbucket.org/greevesh/health_test_api.git

I get the following error message:

ssh: Could not resolve hostname bitbucket.org:greevesh/health_test_api.git: Name or service not known

I'm fairly confident I followed the steps correctly prior to getting to this stage. So, my guess would be that I'm not entering the correct path in the 'ssh -T' command. 

1 answer

0 votes
Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2019

@Harrison Greeves 

 

Hi Harrison

to clone your repo you can use

git clone git@bitbucket.org:greevesh/health_test_api.git

you will need git commands to interact with the repo.

ssh can be used to check if bitbucket.org is reachable in general

 

Cheers

Kurt

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events