"Permission denied (publickey)" error when connection over SSH
This error comes up when using a wrong private key or no key at all when trying to connect via SSH. To resolve the problem, you should generate a new key pair and connect using that new set of keys. A quick way to generate new keys is in Site Tools > Devs > SSH Keys Manager. You can follow the instructions in this tutorial to generate the key pair.
After that, make sure to follow the instructions on connecting via SSH to your account in the respective article below:
How to log in to my SiteGround shared account via SSH using PuTTY?
How to log in to my SiteGround shared account via SSH in Mac OS?
How to log in to my SiteGround shared account via SSH in Linux?