简体   繁体   English

删除ssh密钥后如何访问github帐户

[英]How to access github account after deleting the ssh key

After deleting the ssh keys from my github account it gives permission denied error. 从我的github帐户删除ssh密钥后,它给出了权限被拒绝的错误。

How to access my github account without recreating the ssh keys. 如何在不重新创建ssh密钥的情况下访问我的github帐户。

You still can access it through https, using your GitHub account credentials. 您仍然可以使用GitHub帐户凭据通过https访问它。

That would be your GitHub user account as a login, and your GitHub password. 那将是您的GitHub用户帐户作为登录名,以及您的GitHub密码。
You can also create a PAT (Personnal Access Token) , easier to manage than an SSH key, and easier to revoke if need be. 您还可以创建PAT(个人访问令牌) ,比SSH密钥更易于管理,并且在需要时更容易撤销。

If you don't use 2FA (two factor authentication), such credentials can be cached (except on Windows, it is no longer wincred, like the GitHub documentation incorrectly mention, but "manager": git config --global credential.helper manager ) 如果您不使用2FA(两因素身份验证), 则可以缓存此类凭据 (在Windows上除外,它不再是wincred,就像GitHub文档错误地提到了,而是“ manager”): git config --global credential.helper manager

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM