-
-
Notifications
You must be signed in to change notification settings - Fork 541
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: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain #96
Comments
duplicated of #80 |
I am getting same error how Can I resolve this Issue "ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain" |
@Yaqoob-Aslam Do you refer to https://github.com/appleboy/ssh-action#setting-up-a-ssh-key guide? |
check permissions of authorized_key file and private key file
|
Is this the file in the aws server? |
In case of administrative user on windows, you need to add your public key into file named |
You only need to authorize your key
|
It's funny how something as trivial as this can keep one awake at night! Kuddos! |
@syntaxlexx where do i have to put this in my local or my ec2 instance ? |
This is just a way to authorize your key when connecting using SSH, it depends on your requirements. |
for ci/cd pipeline |
This is something needs to check from start to end, but what I can see in your error logs, you did something wrong with your key files, and that's why you are not able to push the code, You can start with a new key files there, make sure you give right permissions and proper approach for that |
Is this in the EC2 instance or my local machine, kindly be more explicit |
This worked for me!!! |
Working... thanks. This command must be past into EC2 o Droplet (digitalOcean) |
For me the problem was with permissions on authorized_keys file. It had 664, changing to 600 helped and deployment works again. |
ssh is different to sshd. Make sure you have set PasswordAuthentication to yes in the SSHD file, and restarted the sshd service. |
when I access cPanel using ssh client, I got this error. |
ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
This is my workflow file
what i am trying to do with this action is on pushing to master
I am stuck with this issue for hours now.
the pem file that I am using was generated by aws, in the process of creating an instance
this is the command I use to ssh from my laptop
ssh -i ~/Documents/feedachild.pem ubuntu@ec2-*-**-***-***.us-east-2.compute.amazonaws.com
therefore the secrets I added were
HOST =>
ec2-*-**-***-***.us-east-2.compute.amazonaws.com
PORT => 22
USERNAME => ubuntu
KEY => pasted the RSA Key as it is
The text was updated successfully, but these errors were encountered: