TecMint published a tutorial showing you how to set correct SSH directory permissions in Linux.
How To Set Correct SSH Directory Permissions in Linux
SSH to work well requires correct permissions on the ~/.ssh directory: the default location for all user-specific ssh configuration and authentication files.