Permissions for .ssh/authorized_keys

On some systems like Cpanel the ssh keys are not accepted until you set permission manually

On some servers you might be unable to connect with ssh keys, even if you setup the ssh config properly.

How to fix this?

Please try the following commands from the shell of the machine you want to connect into.
chmod 700 ~/.ssh/
chmod 600 ~/.ssh/authorized_keys

Useful tip

Want more info about what ssh is doing when you connect?
ssh -vvvvvv -i key.pem user@host
by Daniel at 2023-03-25T21:35:45.737Z
Copyright © DanielKnows.com 2019 - 2023 - Built with NuxtJS