shimataro / ssh-key-action

GitHub Action that installs SSH key to .ssh
https://github.com/marketplace/actions/install-ssh-key
MIT License
575 stars 86 forks source link

panic: ssh tcp to server: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain #244

Closed arjendevos closed 1 year ago

arjendevos commented 1 year ago

I've done all these steps:

  1. Created a new SSH key
  2. Added it to the target server
  3. Restarted the SSH service on the target server
  4. Connected with the new SSH key from my Mac to the target server (Worked)
  5. Added the SSH key to the CI/CD runner manually (Self hosted)
  6. Connected from the CI/CD runner to the target server (worked)
  7. Copied the SSH key to github secrets
  8. Copied the KNOWN_HOSTS to github secrets
  9. Run the github action
  10. Got this error: panic: ssh tcp to server: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain