You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Steps I've taken:
Follow this guide exactly https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
This is my test connection message:
ssh -T firstname.lastname@example.org
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
email@example.com: 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://bitbucket.org/inforcekz_jira/scripts/src/master/ (fetch)
bitbucket2 ssh://bitbucket.org/inforcekz_jira/scripts/src/master/ (push)
SSH settings under Personal settings in Bitbucket:
SSH port is open on my VM as I can only connect to it via SSH
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 firstname.lastname@example.org:workspaceID/reposlug.git
#username accountHost bitbucket.org-usernameHostName bitbucket.orgUser gitIdentityFile ~/.ssh/privatekeynameIdentitiesOnly yes
- Ben (Bitbucket Cloud Support)