添加或修改SSH密钥的密码短语

Published: 2013-11-21 Category: git Tags:

这篇文章是从git上看来的,我就粗略的翻译下

原文是链接 [Adding or changing a passphrase](https://help.github.com/articles/working-with-ssh-key-passphrases#platform-windows ‘’)

代码:(以下代码在windows平台测试OK)

$ ssh-keygen -p
 #Start the SSH key creation process
 Enter file in which the key is (/Users/you/.ssh/id_rsa): [Hit enter]
 Key has comment '/Users/you/.ssh/id_rsa'
 Enter new passphrase (empty for no passphrase): [Type new passphrase]
 Enter same passphrase again: [One more time for luck]
 Your identification has been saved with the new passphrase.

如果你之前已经设置了密码短语,那么这里会要求输入之前的密码短语,然 后在设置新密码短语时回车就可以了。

Fork me on GitHub