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!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Correctly Added a New SSH Key But Still Can't Pull from Repo

David Newey
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 12, 2023

I created a new SSH key and added it to my keys, checked that I could access the repo and got the correct response but when I try to pull from the repo, I get "authentication failed". Here is my consol session:


[centos@ip-10-2-1-239 laravel]$ eval `ssh-agent`
Agent pid 137198

[centos@ip-10-2-1-239 laravel]$ ssh-keygen -t ed25519 -b 4096 -C "" -f ~/.ssh/id_rsa_apr_net
Generating public/private ed25519 key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/centos/.ssh/id_rsa_apr_net.
Your public key has been saved in /home/centos/.ssh/
The key fingerprint is:
The key's randomart image is:
+--[ED25519 256]--+
| ..++|
| .....o|
| . =...o|
| + o O ..|
| . S + + = |
| . = E . o . |
| . ... ..*..|
| o o ..oB.Oo|
| ...++=o Ooo|
[centos@ip-10-2-1-239 laravel]$ ssh-add ~/.ssh/id_rsa_apr_net
Enter passphrase for /home/centos/.ssh/id_rsa_apr_net:
Identity added: /home/centos/.ssh/id_rsa_apr_net (
[centos@ip-10-2-1-239 laravel]$ less ~/.ssh/
[centos@ip-10-2-1-239 laravel]$
[centos@ip-10-2-1-239 laravel]$
[centos@ip-10-2-1-239 laravel]$ ssh -T
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
[centos@ip-10-2-1-239 laravel]$ git pull
The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.
fatal: Could not read from remote repository.

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


Any idea what I might be doing wrong?



3 answers

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 14, 2023

Hi @David Newey and welcome to the community!

The private SSH key you created may not be offered during the git pull operation.

I would suggest creating a file named config in your ~/.ssh folder and adding the following lines (if the file exists, just add the following content)

        AddKeysToAgent yes
        IdentityFile /home/centos/.ssh/id_rsa_apr_net

This will ensure that this specific SSH key is offered every time you clone/pull/push to a Bitbucket Cloud repo.

I would also suggest double-checking permissions: premissions should be 700 for the ~/.ssh directory, 644 for the public SSH key, and 600 for the private key.

Please feel free to let us know how it goes and if you need any further help!

Kind regards,

0 votes
Graham Twine
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.
Apr 12, 2023 • edited

I am assuming you have access to the repository as Nic has mentioned above.

Add the contents of your public key to bitbucket as mentioned here. Check the application Cloud / DC version etc. I think you are using cloud by the ssh command used.


You can find it here, but I think you have copied it?



Is this a git repository you are in already?
Can you use interactive authentication to clone the repository?


git clone


If the above works and as already mentioned, you have added your public key to bitbucket

git clone ssh://


0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

Welcome to the Atlassian Community!

Have you added the key to Bitbucket?  And does the account have access to the repositories?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events