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.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.