How to fix error Bad owner or permissions on ~/.ssh/config on SSH login

Sometimes when trying to log in to a server via SSH you may come across an error like:

Bad owner or permissions on ~/.ssh/config

As the error implies, the folder has unacceptable permissions. Fix this by running the following command:

chmod 600 ~/.ssh/config

Leave a Reply

Your email address will not be published. Required fields are marked *