ssh-deploy icon indicating copy to clipboard operation
ssh-deploy copied to clipboard

I

Open digitlimit opened this issue 5 years ago • 11 comments

Please what am I missing? I'm getting the error below:

[general] GITHUB_WORKSPACE:  /home/runner/work/wordpress/wordpress
[SSH] /home/runner/.ssh dir exist
[SSH] /home/runner/.ssh/known_hosts file exist
✅ Ssh key added to `.ssh` dir  /home/runner/.ssh/deploy_key
[Rsync] Starting Rsync Action: /home/runner/work/wordpress/wordpress/dist/ to ***@***:/home/REMOTE_USER/
⚠️ [Rsync] error:  rsync exited with code 255
⚠️ [Rsync] stderr:  Load key "/home/runner/.ssh/deploy_key": invalid format
Permission denied, please try again.
Permission denied, please try again.
***@***: Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]

digitlimit avatar Mar 16 '21 14:03 digitlimit

same issue

GreatAuk avatar Mar 23 '21 10:03 GreatAuk

@digitlimit doc image

GreatAuk avatar Mar 23 '21 10:03 GreatAuk

Hello, I have the same issue. I've created a key with ssh-keygen -m PEM -t rsa -b 4096 on my Ubuntu 20.04. Added it to Github Secrets and to /home/myhome/.ssh/authorized_key on my server... What do I miss ?

sebastienserre avatar May 08 '21 12:05 sebastienserre

I know What I missed ! "Private key part of an SSH key pair." I missed the "Private" ;-)

sebastienserre avatar May 08 '21 12:05 sebastienserre

I know What I missed ! "Private key part of an SSH key pair." I missed the "Private" ;-)

How to solve this problem?

workkk98 avatar May 18 '21 01:05 workkk98

I know What I missed ! "Private key part of an SSH key pair." I missed the "Private" ;-)

How to solve this problem?

I find the reason.If private key is in id_rsa file, I should copy all content assign to SERVER_SSH_KEY ,include ---private key start----.

workkk98 avatar May 18 '21 03:05 workkk98

The private key needs to be converted to PEM format. Use ssh-keygen -p -f ~/.ssh/id_rsa -m pem

miracletjf avatar Jul 18 '21 17:07 miracletjf

thank you @miracletjf :)

dridihaythem avatar Jan 14 '22 21:01 dridihaythem

Finally got it working! My problem was that my SSH Key was password protected. Had to recreate it without a password.

therealjmj avatar Feb 16 '22 01:02 therealjmj

I think this guys package is a SCAM please beware you end up using PRIVATE Key into your server which means it can be hacked. Also did you READ the DISCLAIMER, if someoone hacks into your AWS thats it I dont Trust this easingprocess smh

iamunadike avatar Jun 04 '22 15:06 iamunadike

Disclaimer is at the bottom of the index page too much credentials has been given which should not have

iamunadike avatar Jun 04 '22 15:06 iamunadike

I'm not sure if you're trolling or not, but using a private SSH key to authenticate with a remote server is mandatory at some point. No private SSH key, no login.

DamienDaco avatar Oct 13 '22 09:10 DamienDaco

@digitlimit doc image

I have do it follow the steps ,but also get the problem.

zhanfenghai avatar Dec 11 '22 06:12 zhanfenghai

Please what am I missing? I'm getting the error below:

[general] GITHUB_WORKSPACE:  /home/runner/work/wordpress/wordpress
[SSH] /home/runner/.ssh dir exist
[SSH] /home/runner/.ssh/known_hosts file exist
✅ Ssh key added to `.ssh` dir  /home/runner/.ssh/deploy_key
[Rsync] Starting Rsync Action: /home/runner/work/wordpress/wordpress/dist/ to ***@***:/home/REMOTE_USER/
⚠️ [Rsync] error:  rsync exited with code 255
⚠️ [Rsync] stderr:  Load key "/home/runner/.ssh/deploy_key": invalid format
Permission denied, please try again.
Permission denied, please try again.
***@***: Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]

Did you slove the issue

zhanfenghai avatar Dec 11 '22 06:12 zhanfenghai

it does not work

zhanfenghai avatar Dec 11 '22 07:12 zhanfenghai

Please what am I missing? I'm getting the error below:

[general] GITHUB_WORKSPACE:  /home/runner/work/wordpress/wordpress
[SSH] /home/runner/.ssh dir exist
[SSH] /home/runner/.ssh/known_hosts file exist
✅ Ssh key added to `.ssh` dir  /home/runner/.ssh/deploy_key
[Rsync] Starting Rsync Action: /home/runner/work/wordpress/wordpress/dist/ to ***@***:/home/REMOTE_USER/
⚠️ [Rsync] error:  rsync exited with code 255
⚠️ [Rsync] stderr:  Load key "/home/runner/.ssh/deploy_key": invalid format
Permission denied, please try again.
Permission denied, please try again.
***@***: Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]

Did you slove the issue

Amadou02 avatar Mar 07 '23 13:03 Amadou02