ssh Handshake Failed Unable to Authenticate | Github Actions

· 66 words · 1 minute read

I have set up the github action to deploy laravel website using appleboy ssh-action but all actions failed with this weird error message.

2022/09/03 23:46:24 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

ssh handshake failed error in github action deploy script

The fix is simple. just change the permission of authorized-keys by this command.

chmod 700 ~/.ssh/authorized_keys

change permission of ssh authorized keys

If it works, share it with a friend or colleage.

Share:
waffarx cash back