git push 遇到Permission denied (pu

2017-02-28  本文已影响989人  lxyz22zp

在使用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
上一篇下一篇

猜你喜欢

热点阅读