If you are trying to login to your remote host using a key but it doesn't work and you get "Permissions are too open" error then this is for you.
bash
Permissions [xxxx] for '~/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: ~/.ssh/id_rsaPermission of private keys should be set to 600. Run the following two commands from the .ssh directory.
bash
chgrp Users id_rsa
chmod 600 id_rsaAll should be well now.
Keep reading
Control Root Login Using SSH
How to disable password-based root login by replacing it with SSH key-based login.
·1 min read
