Bitbucket cloning via ssh

Hello,
I created repository with Base URL; http://user@xx.xx.xx.xxx:7990/scm/gb/misc.git
However, *) even though the machine is ssh accessible throughout the network it is on, repository can only be cloned via http and from the local host only. Neither HTTPS nor SSH access appears to be functional. SSH base URL is ssh://xx.xx.xx.xxx:7999 , yet the command

git clone ssh://user@xx.xx.xx.xxx:7999/scm/gb/misc.git

returns;

Permission denied (publickey).
fatal: Could not read from remote repository.

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

I did add access keys for the user I am cloning the repository as.

Could anyone hint or suggest where I should be looking at? Checking box for Allow users without a Bitbucket account to clone and browse repositories within this project does not appear to have any effect either.

Thank you.

3 answers

1 votes

Hi Sergey, 

 

Is the a public or private repository? Keep in mind that  the "public access" is only for http. SSH is meant to increase the level of security and not allow anyone to anonymously do things.

 

Also, make sure you are using the correct SSH key from the user. You can check this with the command:

ssh-add -l

(logged with the correct user).

 

Cheers, 

Renato Rudnicki

0 votes

Please check this article from Bitbucket Cloud Knowledge Base. It should help.

Excellent! Thank you. They were public, I turned it off for all.

Thank you.

 

Good to hear you solved this :). If you don't mind, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

678 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot