VSCode:升级后git命令失败主机密钥验证失败

时间:2018-04-04 14:17:21

标签: git visual-studio-code

在我的windows vscode升级之后,我的git命令停止工作并显示在下面的日志消息。我的git检查命令行中的工作。不确定升级过程中发生了什么变化。

如何解决此错误消息?

> git pull
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

enter image description here

1 个答案:

答案 0 :(得分:0)

这对我有用:

  1. 删除〜/ .ssh中的known_hosts
  2. 生成或重新生成ssh密钥
  3. 运行ssh vs-ssh.visualstudio.com
  4. 是。