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

Git 2.28 cannot connect

Matthew Aguirre October 24, 2020

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
Mark McIntyre October 28, 2020

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
zenharbinger October 28, 2020

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.

shantanucse18 April 10, 2021

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
AUG Leaders

Atlassian Community Events