-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hexo d must enter pwd | hexo deploy的时候一直需要输入密码 #175
Comments
执行一下 |
ssh秘钥生成的时候,有输密码步骤,不填不用,填了之后每次都要输😂 |
|
那我尝试重新生成一下试试。Linux比较萌新不太懂这些,谢谢了。 |
I have the same problem, neither running an ssh-agent nor using a token (I tried both entering it as plain text and as a env) let me deploy without the password prompt. OSX 10.15.5 _config.yml:
Everything else is untouched, also tried without and with plaintext token Hexo and Plugin version
package.json:
|
I'm sorry you encountered the same situation as me, but unfortunately I can't help you because I didn't use github pages to deploy. deploy:
type: git
repo: git@github.com:username/username.github.io.git
branch: master Also ask, did you add the private key to github? |
Thanks for reviewing my case, I could only assume we have the same problem (my chinese is pretty much non-existent). |
Nevermind, had a VPN open to my home, changed the address to Thank you very much, you are my hero! |
It's good to useful🤣 |
I encounter this trouble too. |
This solves my problem, I found ssh-key only works for git@ request rather than https |
I will update the README to recommend users to use the repository link format |
预期目标
Expected behavior
遇到的bug
我的目录是
/home/git/hexo.git
我已经在
./git.ssh/authorized_keys
中设置了git用户的公钥但依旧在deploy的时候需要输入密码
因为找不到问题所在,我索性也在hexo.git/.ssh/authorized_keys中也复制了一份公钥
Actual behavior
My directory is:
/home/git/hexo.git
I have set the user
git
's publickey in./git.ssh/authorized_keys
but I still need password when I
hexo d
I could n’t find the problem, so I simply copied a public key in
hexo.git/.ssh/authorized_keys
Environment & Settings
Node.js & npm version
Your site
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others
themes/_config.yml
so
themes/_config.yml
is not necessaryThe text was updated successfully, but these errors were encountered: