ssh returns “Bad owner or permissions on ~/.ssh/config”

I needed to have rw for user only permissions on config. This fixed it. chmod 600 ~/.ssh/config As others have noted below, it could be the file owner. (upvote them!) chown $USER ~/.ssh/config If your whole folder has invalid permissions here’s a table of possible permissions: Path Permission .ssh directory (code) 0700 (drwx——) private keys … Read more

Just to state the obvious for anyone viewing this discussion…. if you give any of your folders 777 permissions, you are allowing ANYONE to read, write and execute any file in that directory…. what this means is you have given ANYONE (any hacker or malicious person in the entire world) permission to upload ANY file, … Read more