美文网首页
【报错】Bad owner or permissions on

【报错】Bad owner or permissions on

作者: elephantnose | 来源:发表于2019-06-12 12:10 被阅读0次

    git pushgit pull 时出现错误

    Bad owner or permissions on /home/elephantnose/.ssh/config
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
    

    在网上查到因为config文件权限问题, 按方法执行命令:

    chmod 600 config
    

    但 git push 仍有问题, 提示需要键入密码:

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0770 for '/home/elephantnose/.ssh/id_rsa' 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/elephantnose/.ssh/id_rsa": bad permissions
    git@10.100.2.22's password: 
    
    

    仔细看了下警告, 将文件id_rsa权限修改后问题解决

    chmod 666 id_rsa
    

    可以 pushpull

    相关文章

      网友评论

          本文标题:【报错】Bad owner or permissions on

          本文链接:https://www.haomeiwen.com/subject/jzwkfctx.html