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

Created by Daniel on 11/22/2024

Copyright © DanielKnows.com 2019 - 2024 - Built with NuxtJS

Subscribe for Tech Tips!

Stay updated with the latest tech insights and tips. Subscribe now!

{}