参考这篇文章得以解决: VS Code SSH 不稳定的解决方法-腾讯云开发者社区-腾讯云 (tencent.com) 将环境变量Path中的Git\usr\bin环境变量放在System32\OpenSSH之前