-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment Failed, Permission denied (publickey,password). #175
Comments
same issue :( PLEASE HELP |
we are having the same problem |
Same issue, solved it by adding a new line at the end of private key. |
me too |
it works for me |
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. |
Reopened, since it still require manual workaround. |
in my webhost hetzner is working but in 1&1 webhost getting error Should we consider making some adjustments to our server? premisson denied to change sshd_config however ...1&1 ( ionos )
in 1&1 (ionos) : in hetzner : going to /ssh |
Is this a bug? Why we need an extra line after -----END OPENSSH PRIVATE KEY----- ? Could this be maybe mentioned at the docs? I struggled 1 week because of this anomaly. Thanks for the right hint @davyxx3 👍 |
Can you try Probably the same issue: #143 |
i got the same error Deployment Failed, Permission denied (publickey). |
@chungyeong in my case none of the solutions worked and also changing the key from PEM to RSA also didn't work :( |
I solved the authorisation failure problem by first adding a new line at the end of the private key, after which I also needed to run The reason why this is needed, I thought ssh-deploy must be going password free login with the help of a private key, I tried to log in to the server on my computer via the private key as well, and expected this error, so I checked the relevant error messages, and finally I found out that I need to copy the public key paired with the private key to authorized_keys to open up the authorisation. |
|
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. |
Thank you, that works! |
|
while doing GitHub actions to link with my digital ocean server im getting this error
Run easingthemes/[email protected] [general] GITHUB_WORKSPACE: /home/runner/work/laravelTest/laravelTest [SSH] Creating /home/runner/.ssh dir in /home/runner/work/laravelTest/laravelTest ✅ [SSH] dir created. [SSH] Creating /home/runner/.ssh/known_hosts file in /home/runner/work/laravelTest/laravelTest ✅ [SSH] file created. ✅ Ssh key added to
.ssh` dir /home/runner/.ssh/deploy_key[Rsync] Starting Rsync Action: /home/runner/work/laravelTest/laravelTest/ to @:***
[Rsync] exluding folders
Load key "/home/runner/.ssh/deploy_key": error in libcrypto
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(231) [sender=3.2.7]
1: 0xb090e0 node::Abort() [/home/runner/runners/2.311.0/externals/node16/bin/node]
2: 0xb79379 [/home/runner/runners/2.311.0/externals/node16/bin/node]
3: 0xd3df8e [/home/runner/runners/2.311.0/externals/node16/bin/node]
4: 0xd3f3af v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/home/runner/runners/2.311.0/externals/node16/bin/node]`
The text was updated successfully, but these errors were encountered: