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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Cannot push using git on linux

Steps I've taken:

Follow this guide exactly

This is my test connection message:

ssh -T
authenticated via ssh key.

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

 This is message I get when I try to push my files into my repo

root@jirau-virtual-machine:/var/atlassian/application-data/jira/scripts# git push bitbucket2 Permission denied (publickey).
fatal: Could not read from remote repository.

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

 This repo does exist in my Bitbucket Cloud and was created by me

My remote settings:

root@jirau-virtual-machine:/var/atlassian/application-data/jira/scripts# git remote -v
bitbucket2 ssh:// (fetch)
bitbucket2 ssh:// (push)

SSH settings under Personal settings in Bitbucket:


SSH port is open on my VM as I can only connect to it via SSH

2 answers

I've got the same issue, but I found better solution, I just changed remote from into

0 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 20, 2022

Hey Gleb,

Welcome to the Bitbucket Cloud Community!

A common issue I see is that the SSH will authenticate, but it will not use the correct key and therefore will fail to grant access.
Please try to update your remote URL as follows to specify the username to authenticate with in GIT, provided your ~/.ssh/config file has been mapped correctly this should authenticate without issues:

git remote set-url origin
If this does not work, try to edit your config file directly to, again, specify the username that you would be using to authenticate with - replacing "username" in the text below:
#username account
User git
IdentityFile ~/.ssh/privatekeyname
IdentitiesOnly yes
Hope this helps.


- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events