之前本地提交代码,每次都要提示输入密码,很麻烦。后来解决了这个问题。现在将这段笔记迁移到博客,希望对遇到同样问题的人有帮助
终端输入以下命令:
ssh-keygen -p
终端提示:
Enter file in which the key is (/Users/wengf/.ssh/id_rsa): # 这里直接回车
Enter old passphrase: // 输入密码
Enter new passphrase (empty for no passphrase): // 新密码直接回车
Enter same passphrase again:
Your identification has been saved with the new passphrase. // Ok