Enter passphrase for key 重启电脑失效
上一篇转载了一篇文章http://picoluster.com/%E5%85%B6%E4%BB%96/2017/10/19/Mac%E4%B8%8B%E9%81%BF%E5%85%8Dgit%E9%87%8D%E5%A4%8D%E9%AA%8C%E8%AF%81ssh.html
可以使用ssh-add -K ~/.ssh/id_rsa但是我发现重启电脑仍然需要输入
两种解决方法:
1、删掉密码 使用
ssh-keygen -p
Enter file in which the key is (/Users/staff/.ssh/id_rsa):
这个命令改新密码,输入密码是按空格不要密码即可
2、
Mac 重启后自动 ssh-add 私钥
通过添加自动重启命令脚本
浙公网安备 33010602011771号