A meta post. I was faced with a persistent annoying issue when I tried to deploy the website from my Github repo using the automation Github offers aka Github Actions, which would connect to the website server via SSH. I kept getting
[Rsync] error: rsync exited with code 255
[Rsync] stderr: Warning: Permanently added '***' (ED25519) to the list of known hosts.
Permission denied (publickey,password)
I use easingthemes for this and lucky me, it is a known issue. I thought the issue comes from ED25519 key I have in .ssh folder. However, all the solutions presented in the thread didn’t work for me 🙁 I tried different private keys, changed the access of these keys, copied the keys in the server, etc.
And finally I found the solution!
- First thing first, make sure that
SSH_PRIVATE_KEYis created in the way easingthemes requires (see reqs). I saved this key pair ashostingerandhostinger.pub. - Add the public key hostinger.pub in Hostinger panel (Website > Advanced > SSH Access > Add the key under SSH keys block)