While doing ssh to a hostname (with a custom configuration file named ~/.ssh/config) faced this error:
ssh bad owner or permissions on config
chown $USER ~/.ssh/config
chmod 644 ~/.ssh/config
Because of the potential for abuse, this file must have strict permissions: read/write for the user, and not writable by others. It may be group-writable provided that the group in question contains only the user.