SFTP-Deploy-Action
SFTP-Deploy-Action copied to clipboard
Permission denied (publickey,password).

Getting the same issue also.
同样遇到问题
+1 最近是怎么了?
这个解决方法,是重新配置ssh-key
+1
+1
I was facing the same error until I found the following page which solved my issue: https://zellwk.com/blog/github-actions-deploy/
In the end I had to regenerate an SSH key using:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Previously I had created my key following the recommendation by GitHub
ssh-keygen -t ed25519 -C "[email protected]"
But the Ed25519 public-key algorithm seems to have caused some level of incompatibility either on my VPS or in this repo.
I solved this problem by following this article https://juejin.cn/post/7000655659758780453
put the server's pub key into authorized_keys can solve this problem cat id_rsa.pub >> authorized_keys
I solved this problem by following this article https://juejin.cn/post/7000655659758780453
This one really work fine. Thanks @zhenyuWang
But exclude and old files not removing.
@gabcvit
It worked for me. You are a lifesaver.
If you use the Ed25519 algorithm to generate an SSH key pair ssh-keygen -t ed25519 -C "[email protected]",
you need to note that the last line of the private key is a blank line. You need to retain it when adding Repository secrets, otherwise it may lead to an 'invalid format' error.
If the issue still exists, please reply under this issue and I will reopen it.