13

Permissions 0777 for xxx are too open

 1 year ago
source link: http://blog.devwiki.net/index.php/2020/05/23/permission.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

DevWiki

Permissions 0777 for xxx are too open
在使用wsl 提交代码的时候, 控制台提示这个错误:$ git push --set-upstream origi...
扫描右侧二维码阅读全文
23
2020/05

Permissions 0777 for xxx are too open

  1. 首页

在使用wsl 提交代码的时候, 控制台提示这个错误:

$ git push --set-upstream origin master
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for '/home/zyz/.ssh/devwiki' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/zyz/.ssh/devwiki": bad permissions
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

原因是 ssh key的权限问题, 设置为 700 即可.

chmod 700 devwiki
最后修改:2020 年 05 月 23 日 04 : 46 PM
如果觉得我的文章对你有用,请随意赞赏

发表评论 取消回复

评论 *

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK