-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
ssh: handshake failed on every attempt #80
Comments
I just followed those steps exactly (adding another key). I get the same error on the Github action page. I'm able to log in fine using SSH from the terminal using that newly created key. I must be missing something else. I don't believe it is Firewall related as SSH does respond and gives the handshake failed response. The key works from the ssh on the terminal when I use Just checking the basics here: host is the dns name of the server (for example I'm not sure what else could be going wrong. Hmmm |
I got the same error My action file
|
I just resolve the issue my RSA PRIVATE KEY was incomplete Thx. |
@militem-code Thanks! However you got the executing remote ssh commands1s ======END====== |
I an confirm this error. All of a sudden it started to fail. Nothing has changed on the secrets |
Yea. I'm stumped on this too, can't find what is wrong |
I'm also unable to get it to work. Getting 2020/09/20 20:24:23 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain |
@Siedlerchr @Oliyy @timahrentlov Where is the target ssh server hosted? I'm curious is this is specific to AWS. |
It's hosted on Digital Ocean. |
@Cabalist our server is hosted at Hetzner |
@Cabalist This is failing for me too, exactly in this way, on a custom server. |
Failing for me as well: |
Failing for me too. Running server on digital ocean. Was working fine a few days ago. |
I can confirm the error |
Any news about the error? I've been having the same issue too. |
This is failing for me too, haven't had issues before today's attempted deployment. |
I was using this package for a custom CI pipeline on my digital ocean server, but due to this error I had to stop. If anyone else is using DO i recommend using their new app platform which comes with a built in CI pipeline! |
@kraj011 What new app platform do you use? |
I will create a new video to demo how to use the plugin with the DO server. |
@appleboy It came out very recently; here's a link to it: DO App Platform |
I've been having the same issue too, someone already solved? |
a similar error, I haven't found a solution yet UPD |
Well I was finally able to make it work. I don't remember well what I changed because it was so long ago, but here is my YAML file:
|
I got it! @v0.1.4 work at the moment
|
v0.1.4 vs master version: I think no difference between v0.1.4 and master. |
LOL that's so weird :-p |
i found reason. because ssh_key is incorrect.
|
In case it's helpful for anyone else, I dropped down to ssh as a quick hack to unblock myself (in addition to double-checking the authorized_keys on my DigitalOcean droplet):
|
@appleboy nope, after troubleshooting and making sure nothing from my side was causing the issue I tried changing back to v0.1.4 and that was it, build worked perfectly. |
@CorpoScum ok, thanks for your feedback. |
Worked for me as well :) |
Worked for me |
worked for me as well |
I got the same error. In the end, I used the email address I have my GitHub account associated with. And that one worked. For debugging purposes, I suggest running a separate SSH session on different port on your server with the following command (source):
and then point GH Actions to that port. Remember that you most likely need to open this port in the firewall of your server distro. |
I originally had the same error before reading the directions in the repo. I was following an article that said to copy the servers private key which seemed odd to me. After getting On my local computer I ran I then ran Next I then ran Re-running the previously failed job was successful. |
Please note for whom this problem still exists, it may solve your problem:
|
@ikapeykin any reason why it wouldn't work in |
@adampatterson it depends on the SSH version. I do not know the real reason, but just applied this fix after a thousand runs and it works :) |
I closed the issue. Please open a new issue if you facing another problem. |
@ikapeykin I resolved my issue by adding in my case |
Worked for me 🙌🏽 |
Worked for me also! |
this is works!!!! thx!!! |
The cause of this problem may be an issue with directory permissions: |
This same problem happened to me, it turns out that I was filling the username field with a secret that had an incorrect name which I did not have defined in my secrets. But I didn't get the error that I wasn't entering a user or it was incorrect, as it does when trying to do the same with the key field. |
I was so used to ssh agent auto connecting me to my server that I had forgotten I had created a passphrase for my SSH key. |
https://github.com/fifsky/ssh-action worked for me. |
fifsky/ssh-action works for me too |
29.02, I used fifsky/ssh-action@master and it works too |
did you solve this ? |
switching to Anyway...I don't know what the exact issue is, but there is for sure a discprepancy/bug either on the action side or the sshd side between v0.1.4 and v0.1.7/master. you should be able to replicate this using |
Hello, @Cabalist , @appleboy.
Here is my mail.yml file. name: Laravel CI/CD on: jobs:
deploy:
I already confirmed the public key in the authorizedkeys. It is same with public key which authorized key in my cpanel. |
This comment was marked as duplicate.
This comment was marked as duplicate.
@jsteinberg-rbi @Roman-Dev00 The latest version is v1.0.3, Could you help to try it out? |
move to #323 for further discussion. |
Hey there,
I'm stuck and wasn't able to find a solution in reading previous issues. I keep getting the following error:
2020/08/29 01:19:13 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Here is my YAML:
My ssh key is a pem file:
The correct values are in
.ssh/authorized_keys
on the remote server. I am able to ssh from multiple other machines using this key. There is no passcode.I'm stumped! This is on EC2 if that makes a difference.
The text was updated successfully, but these errors were encountered: