更新 macOS 到 ventura 13.0 后 git 用不了了, 报以下错误:
git@xxx.xxx.xxx.xxx: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方案:
在 .git/config
中添加以下配置:
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa