美文网首页
git push 遇到Permission denied (pu

git push 遇到Permission denied (pu

作者: lxyz22zp | 来源:发表于2017-02-28 10:56 被阅读989次

    在使用Tower和sourcetree工具Fetch、Pull、Push时遇到如下问题

    Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    

    一、临时解决办法

    使用命令行,手动输入sshkey的密码即可

    ➜  MeiJiaShi git:(developer) ✗ git push
    Enter passphrase for key '/Users/zhaopeng/.ssh/id_rsa': 
    

    二、

    使用命令重新生成一个sshkey 添加到gitlab服务器的sshkey list即可

    ssh-keygen -t rsa -C "GitLab" -b 4096
    

    相关文章

      网友评论

          本文标题:git push 遇到Permission denied (pu

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