Git push prompts Host key verification failed.

  git, question


  • w10
  • vscode
  • git
  • tortoisegit

Problem description

  • When I use ittortoisegitcarry throughpushWhen operating, everythingNormal
  • When I use itvscodecarry throughpushWhen operating, the prompt is as followsError
> git push origin master:master
 Host key verification failed.
 fatal: Could not read from remote repository.
 Please make sure you have the correct access rights
 and the repository exists.
  • Is the same project, withtortoisegitConfiguredPPKKey
  • githubConfigured with nativesshKey

I hope you can give me some advice. Thank you very much.


ssh -T