SFTP-Deploy-Action icon indicating copy to clipboard operation
SFTP-Deploy-Action copied to clipboard

Permission denied (publickey,password).

Open huiminxu opened this issue 4 years ago • 11 comments
trafficstars

image

huiminxu avatar Jun 18 '21 02:06 huiminxu

Getting the same issue also.

JamsRepos avatar Jun 20 '21 20:06 JamsRepos

同样遇到问题

zhypower1997 avatar Jun 23 '21 06:06 zhypower1997

+1 最近是怎么了?

ManfredHu avatar Jul 22 '21 12:07 ManfredHu

这个解决方法,是重新配置ssh-key

zhypower1997 avatar Jul 22 '21 13:07 zhypower1997

+1

johanazhu avatar Aug 19 '21 01:08 johanazhu

+1

zhenyuWang avatar Aug 21 '21 03:08 zhenyuWang

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.

gabcvit avatar Sep 07 '21 19:09 gabcvit

I solved this problem by following this article https://juejin.cn/post/7000655659758780453

zhenyuWang avatar Sep 08 '21 07:09 zhenyuWang

put the server's pub key into authorized_keys can solve this problem cat id_rsa.pub >> authorized_keys

xiaochuntu avatar Jan 26 '22 07:01 xiaochuntu

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.

raazon avatar Mar 24 '22 19:03 raazon

@gabcvit

It worked for me. You are a lifesaver.

moazam1 avatar May 31 '22 16:05 moazam1

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.

image

wlixcc avatar Aug 21 '23 06:08 wlixcc

If the issue still exists, please reply under this issue and I will reopen it.

wlixcc avatar Aug 21 '23 06:08 wlixcc