vscode Git: Host key verification failed.

问题:报错如题
原因:~/.ssh/known_hosts中没有github.com
解决:

ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts

你可能感兴趣的:(vscode,git)