GIT WARNING: UNPROTECTED PRIVATE KEY FILE


在执行git clone 时 报错 WARNING: UNPROTECTED PRIVATE KEY FILE!   
 
 
 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0577 for '/Users/wang/.ssh/id_ed25519' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/Users/wang/.ssh/id_ed25519": bad permissions
git@codeup.aliyun.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
 
 
解决方案:
 
chmod 600 /Users/wang/.ssh/id_ed25519
 
 
更改key文件的权限,注意这里不能使用sudo ,否则会报如下错误。
 
 
sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: error initializing audit plugin sudoers_audit
 
 
 
发布时间 : 2023-03-01,阅读量:1215
本文链接:https://upwqy.com/details/8.html
服务器上git pull 冲突 Docker 通过Dockerfile 配置Nginx + PHP + Redis环境