Open LeonardoFurtado opened 1 year ago
@LeonardoFurtado I had the same error, and it appears that this is the actual issue:
Load key "/home/runner/.ssh/deploy_key": error in libcrypto
I would double check that your private key secret has a newline character at the end of the file, because for some reason libcrypto requires it to be a "valid format"
@LeonardoFurtado I had the same error, and it appears that this is the actual issue:
Load key "/home/runner/.ssh/deploy_key": error in libcrypto
I would double check that your private key secret has a newline character at the end of the file, because for some reason libcrypto requires it to be a "valid format"
There is no newline character at the end of my file :/
run this in your server:
cd ~/.ssh && cat id_rsa.pub >> authorized_keys
This is a frustrating issue, even if you are deploying locally, you still need to add the public key to authorized_keys, otherwise you won't be able to login using your private key (and of course, you might need to configure some settings in sshd_config as well).
I have similar issue and problem on my side seems to be that the key file created by ssh-deploy has Windows line endings. I am able to reproduce issue using cmd line and the file produced by this action. After having run it through dos2unix
command to fix line endings it starts working.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Adding comment to remove stale label, issue has suggested solution and is waiting for maintainer approval.
Don't know why, but the private key secret requires a new line character at the end (Just hit the enter key). It solved my problem.
This PR https://github.com/easingthemes/ssh-deploy/pull/156 should solve the issue
Given that #156 was merged in v4.1.10, this issue is probably fixed.
@LeonardoFurtado can you corroborate it and close the issue?
using latest script also output error, and i also create a ubuntu docker contianer and use ssh-deploy generated script to mock github runner(in my case is under docker) connect server,it's works.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Added public key to authorized_keys and added a new line to private key. The issue still persists.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Hello guys i did follow the same steps but i still get this error on attachment
What solved it for me was to generate a new key as per: https://github.com/easingthemes/ssh-deploy?tab=readme-ov-file#1-ssh_private_key-required
Initially I was using my standard key, which had a passphrase, which caused issues.
What solved it for me was to generate a new key as per: https://github.com/easingthemes/ssh-deploy?tab=readme-ov-file#1-ssh_private_key-required
Initially I was using my standard key, which had a passphrase, which caused issues.
Mine doesn't have any paraphrases, yet the issue persists.
Can you try SCRIPT_BEFORE
param, eg SCRIPT_BEFORE: ls
. This will force known_hosts
update, adding your host via ssh-keyscan
Added public key to authorized_keys and added a new line to private key. The issue still persists.
Did you resolved the Issue,
I solved the problem smoothly this way, so if anyone else has this problem, try using my method. @Abihsake @qumberrizvi @markgeraldnjau https://github.com/easingthemes/ssh-deploy/issues/175#issuecomment-2128873743
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
I'm trying to use this action, but the job is completed and the files are not uploaded.
My steps.
I create a new EC2 instance, downloaded de PEM that I generated when created the instance.
I've alocated a Elastic IP to my instance, So i'm using it on REMOTE_HOST secret
Added the default ubuntu name on REMOTE_USER secret
Copied the content of my .pem key on SSH_PRIVATE_KEY secret
I dont created a REMOTE_TARGET.
After execute the job I've received the following warnings and the folder was not upload to my ec2 instance.
This is my workflow.yml