今天在 wsl 中使用 git 是遇到这个错误, 如下:

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

意思是 config 文件的权限不对, 正确设置如下:

chmod 600 ~/.ssh/config