如何重置或更改GitHub SSH密钥的密码? [英] How to reset or change the passphrase for a GitHub SSH key?

查看:1141
本文介绍了如何重置或更改GitHub SSH密钥的密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Git中忘记了我的密码。我该如何重置?我在堆栈溢出中找到了两个解决方案,但我想知道重置或获取它的过程。

解决方案

总之,没有办法为一对SSH密钥恢复密码。为什么?因为出于安全考虑,它首先打算这样做。其他人给你的答案是改变密钥密码的正确方法,而不是恢复它们。所以,如果你忘记了密码,你可以做的最好的是创建一对新的SSH密钥。 如何生成SSH密钥并将其添加到您的GitHub帐户


I have forgoten my passphrase in Git. How do I reset it? I found two solutions on Stack Overflow, but I want to know what process to follow to reset it or to get it.

解决方案

In short there's no way to recover the passphrase for a pair of SSH keys. Why? Because it was intended this way in the first place for security reasons. The answers the other people gave you are all correct ways to CHANGE the password of your keys, not to recover them. So if you've forgotten your passphrase, the best you can do is create a new pair of SSH keys. Here's how to generate SSH keys and add it to your GitHub account.

这篇关于如何重置或更改GitHub SSH密钥的密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆