Tag Archives: Bad owner or permissions on .ssh/config

Bad owner or permissions on .ssh/config [How to Solve]

When we build a git remote warehouse on our own server and associate the local with the remote warehouse, we need to write a config to enable the local to associate with the remote warehouse of non-80 port

Host "IP" 
Port "port"

When executing git fetch, the following error occurred:

Bad owner or permissions on /home/haowt/.ssh/config

At this time, just execute the following command line in the. SSH Directory:

sudo chmod 600 config