ssh-key

hexo发布博客 “enter passhrase for key ‘…/rsa_id’”

用hexo在github上搭建好自己的博客
接下来发布博客,输入

$hexo d

每次都会出现“enter passphrase for key ‘…/id_rsa’的问题:

原因:可能在之前部署博客生成ssh秘钥的时候误为私钥id_rsa设置了密码

解决方法:重置ssh私钥密码

[zsy@desktop]$ cd ~/.ssh/
[zsy@desktop]$ ssh-keygen -f id_rsa -p #修改ssh私钥passphrase
Enter new passphrase (empty for no passphrase):
Enter old passphrase: #输入之前设置的密码
Key has comment id_rsa #验证通过,允许修改
Enter new passphrase (empty for no passphrase): #此时不要再设置密码了 直接按空格!!!
Enter same passphrase again:
Your identification has been saved with the new passphrase.

好了,现在没有密码了,hexo d 不需要再次输入密码了,问题解决了~