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

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

Git 2.28 cannot connect

Edited

After updating to Fedora 33 and using git 2.28, I get the following

My bitbucket server works fine using Fedora 32, CentOS 8, and Ubuntu 20.04.1 LTS

 

Setting and generating new ssh keys did not help.  I can check out with https, but do not want to. 

 

Cloning into 'portal-grails'...
git@git.xxxx.com: 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

3 votes
Answer accepted

Follow the thread here for some insight into the problem:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/QCZHTG2BHF4LJSSK2OQUCWEXJV4BVODX/#2UT63ST4JARKZIENTKROMBVC6RUPRYEF

The solution for me ended up being adding this to my .ssh/config file:

## Bitbucket
Host bitbucket.org
    PubkeyAcceptedKeyTypes +rsa-sha2-256,rsa-sha2-512

Yep, I something similar (possibly exactly) to this which worked.

Thanks!

It was frustrating that it would work with my other distros, but not w/ Fedora 33.

All using the same .ssh info.

You can also use ssh param before git clone like following

GIT_SSH_COMMAND='ssh -oPubkeyAcceptedKeyTypes=+ssh-rsa' git clone git@bitbucket.org:whateverproject/somerepo.git

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.7.0
TAGS
Community showcase
Published in DevOps

GitHub Script with GitHub Actions Automating Workflows

Hello folks, This is a series of articles where I explain GitHub Script with GitHub Actions and how you can automate publishing data on Atlassian & GitHub Platform based on the results of Workf...

135 views 1 2
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