问题
Since I've installed Fedora 33, any git operation with GitLab.com (and with a different symptom, azure) fail. On GitLab.com I get:
git@gitlab.com: Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Azure simply asks for password without showing any errors.
回答1:
As suggested in here, the fix for gitlab is to save these lines in ~/.ssh/config
file:
Host gitlab.com
HostName gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
PubkeyAcceptedKeyTypes=+ssh-rsa
For Azure, change both occurrences of gitlab.com
to ssh.dev.azure.com
来源:https://stackoverflow.com/questions/65007311/in-fedora-33-git-operations-with-ssh-id-rsa-file-fail-on-gitlab-com