Open MSoup opened 3 weeks ago
Judging from the logs you provided, it's stuck at the step of copying files, which has nothing to do with ssh.
Or maybe you haven't provide complete logs.
Thank you for the observations. I decided to try the same steps without the dev container to focus on the topic of git/ssh and not possible permissions issues within the dev container.
Now the public folder is deployed, but as the deployer doesn't reference my ~/.ssh/config file, it is using the wrong private key to deploy to the gh pages branch. (it shows my other account as the account that pushed to the gh-pages branch)
The only temporary fix I know right now is forcing the deploy
script to use a different "GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL, like
"deploy": "GIT_AUTHOR_NAME='Foo' GIT_AUTHOR_EMAIL='foo@example.com' hexo deploy",
I have also tried setting name
and email
from within _config.yml
but the deployer doesn't seem to pick them up either.
Is there anything I can do to produce more helpful logs?
Check List
Describe the bug
npx hexo deploy
does not reference my ~/.ssh/config or it is not using my ssh user agent.As a result, it hangs at the deploy step.
It does not proceed from the above and I have to restart my computer in order to get my daemon back in a functioning state (colima).
Expected behavior
git authenticates via my ssh user agent, checks the ~/.ssh/config file to map personal.github.com to github.com before finally authenticating with the remote and pushing my static bundle
How to reproduce
npx hexo clean && npx hexo deploy
Screenshots
No response
Environment information
Additional context
I have tested from within my dev container that ssh user agent forwarding is working as expected, and regular git commands work as well.
From within my dev container
My remote URL looks like
And my ~/.ssh/config looks like
I don't know how to further inspect what is happening. I know that with git I can do something like GIT_TRACE=true git pull, but I cannot do the same for this tool in order to further debug.