今天在 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
本文介绍在WSL环境中使用Git时遇到的权限错误'Bad owner or permissions on ~/.ssh/config',并提供了解决方案:通过运行'chmod 600 ~/.ssh/config'来修正配置文件的权限。
今天在 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

被折叠的 条评论
为什么被折叠?