shimataro/ssh-key-action

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

Closed this issue · 0 comments

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