Bad owner or permissions on 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章