今天在 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
Last modification:May 21st, 2020 at 06:23 pm
If you think my article is useful to you, please feel free to appreciate