Bad owner or permissions on ssh config

I encountered this error when using git in wsl today, as follows:

git push --set-upstream origin master
Bad owner or permissions on ~/.ssh/config
fatal: Could not read from remote repository.

It means that the permissions of the config file are incorrect, and the correct settings are as follows:

chmod 600 ~/.ssh/config

Guess you like

Origin blog.csdn.net/DevWiki/article/details/106302516