如何在不创建新密钥的情况下删除SSH密钥的密码?

泄露秘密 提交于 2020-04-18 19:52:12

问题:

I set a passphrase when creating a new SSH key on my laptop. 我在笔记本电脑上创建新的SSH密钥时设置了密码。 But, as I realise now, this is quite painful when you are trying to commit ( Git and SVN ) to a remote location over SSH many times in an hour. 但是,正如我现在意识到的那样,当您尝试在一小时内通过SSH多次提交( GitSVN )远程位置时,这非常痛苦。

One way I can think of is, delete my SSH keys and create new. 我能想到的一种方法是删除我的SSH密钥并创建新密钥。 Is there a way to remove the passphrase, while still keeping the same keys? 有没有办法删除密码,同时仍然保持相同的密钥?


解决方案:

参考一: https://stackoom.com/question/TEq/如何在不创建新密钥的情况下删除SSH密钥的密码
参考二: https://oldbug.net/q/TEq/How-do-I-remove-the-passphrase-for-the-SSH-key-without-having-to-create-a-new-key
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!