这个问题耗费了一天多时间才搞定,本来都想放弃了,但是我就是这么执着的人,要是解决不了,心里老想着。 在这里记录下来,以免后续遇到同样的问题再花费时间去研究。
- 问题如何发生
最近因为想在Visual Studio 2022上安装GitHub Co-pilot, 所以需要升级VS2022到更新的版本。然后之前工作正常的GIT FETCH/PULL,现在不工作了,并且都是用的sshkey秘钥认证的方式,还不停的弹出密码输入框:
然后报错如下:
Permission denied, please try again.
Permission denied, please try again.
git@sbwdlab.screenbeam.com: Permission denied (publickey,password).
Error encountered while fetching: Failed to fetch from the remote repository. See the Output window for more details.
Failed to fetch from the remote repository. See the Output window for more details.
2. SSHKEY配置检测
/c/Users/xxx(用户名)/.ssh:config/id_rsa 都还存在。
GitLab: 检测之前添加的SSH KEY也都还存在。