-
-
Notifications
You must be signed in to change notification settings - Fork 583
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: unable to authenticate, attempted methods [none], no supported methods remain #251
Comments
I have the same setup actually... Same problem |
I have the same problem. |
@vishwasg217 What is your os version on DROPLET? |
Please post your config |
Make sure you added the public key to the authorized_keys file. You can do it like so |
Please use the following command ssh-copy-id -i ~/.ssh/id_rsa.pub account@hostname |
This is what my /etc/ssh/sshd_config file looks like:
In /etc/ssh/sshd_config.d/, I only have a config file called 50-cloud-init.conf filled with FYI: I set up the github secrets correctly (host, username, key and passphrase) and added my public key to github. I can connect fine from my droplet using the command Any idea what is wrong? Been struggling with that issue for a few hours.. |
@Maxservais Can you also post your ssh-action config? your key begin with |
Hello, yes I copy the full private key. This is (a slightly shorter version of) my github action workflow:
|
@Maxservais Please try the solution from #232 (comment) for |
@appleboy unfortunately it doesn't work either.. |
I change the to @master and it's work. |
Has anyone figured out the cause of this error? I have two projects, where one is working correctly, but the other one is throwing this error. The configurations are identical. |
Run this command after editing authorized_keys file It worked for me. |
For me the problem was with permissions on authorized_keys file. It had 664, changing to 600 helped and deployment works again. |
This is my github actions workflow file:
name: Deploy ML Model Web App
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-20.04
Error: ssh: unable to authenticate, attempted methods [none], no supported methods remain
please help me out with this
The text was updated successfully, but these errors were encountered: