问题
I recently set up Fedora 33 and was migrating over my files. I copied over my ssh keys and found that I could no longer pull from bitbucket git repos I was able to pull from on my old laptop. The ssh keys are exactly the same, and the public key is already on the bitbucket account. Additionally the permissions were set to chmod 600
. I still can not pull from the repo.
回答1:
This seems to be a recent issue around Fedora 33. This is the relevant bug report.
The issue is that it seems like Fedora 33 removed support for SHA1
, and I guess bitbucket.org
uses SHA1
for their git clone
via ssh
. You can verify if this is the same issue by running ssh -Tv git@bitbucket.org
and grep
the output for debug1: send_pubkey_test: no mutual signature algorithm
.
The current workaround, as listed in the bug report, is to explicitly specify ssh-rsa
support in your ~/.ssh/config
:
Add the following entry to your ~/.ssh/config
and make sure it has the permission chmod 700 ~/.ssh/config
Host bitbucket.org
User git
PubkeyAcceptedKeyTypes ssh-rsa
Replace bitbucket.org
with whatever git host you are using
来源:https://stackoverflow.com/questions/64792380/fedora-33-git-pull-or-clone-no-longer-working-and-or-ssh-key-no-longer-recognize