GitHub 配置SSH方式验证身份及遇到的问题

GitHub 配置SSH方式验证身份:[通过双重身份验证、SSH、和提交签名验证等功能保持帐户和数据的安全。](https://docs.github.com/cn/enterprise-cloud@latest/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection) ``` ssh -T [email protected] ``` Hi XXXX! You’ve successfully authenticated, but GitHub does not provide shell access. 如果 origin 用的 https 的方式,需要重新用 ssh 的方式设置一下。 ``` git remote set-url origin [email protected]:xxxxx/xxxxxx.git ``` [参考: Hi SeanChense! You’ve successfully authenticated, but GitHub does not provide shell access.](https://stackoverflow.com/questions/26953071/github-authentication-failed-github-does-not-provide-shell-access)

你可能感兴趣的:(GitHub 配置SSH方式验证身份及遇到的问题)