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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to resolve issue of "You can use git or hg to connect to Bitbucket. Shell access is disabled" Edited

I have set SSH Key for  by Bitbucket account but still I can't Clone my repo, i'm using

Ubuntu 20.04.1 LTS

 Where i run ssh -v

debug1: Host '' is known and matches the RSA host key.

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

git clone<repo_name>.git Permission denied (publickey).
fatal: Could not read from remote repository.

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


1 answer

1 accepted

0 votes
Answer accepted

Hi @albogast kiyogoma ,

Could you please run the following command and share the output here? (You may remove the workspace id and repo name from the output)

GIT_SSH_COMMAND="ssh -vvv" git clone<workspace-id>/<repo_name>.git

There are many possible reasons for this error, and this command will give more verbose output and very possibly an indication of what may be going wrong.

A few more questions:

  • Do you have multiple SSH keys in the .ssh directory of the machine where you are trying to clone?
  • Is there a file named config in the .ssh directory, and if so, do you have any configuration in there for

Kind regards,

Hello Theodora,

Thanks for your help. I was faced with multiple SSH keys in the .ssh.

Now I worked.

Like Theodora Boudale likes this

Good to hear, thank you for the update!

Like albogast kiyogoma likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,575 views 1 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you