Fedora 33 git pull or clone no longer working and/or ssh key no longer recognized

為{幸葍}努か 提交于 2021-02-07 20:16:30

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!