自动化发布的时候Git没有权限
来源:13-9 服务端项目自动化发布、验证、故障排查与解决
qq_玄夜幻翼_0
2018-03-15
===========进入git项目happymmall目录=============
==========git切换分之到mmall-v1.0===============
Already on 'v1.0'
==================git fetch======================
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
==================git pull======================
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
但是这个是成功的
[wyf@VM_0_16_centos developer]$ ssh -T git@gitee.com
Welcome to Gitee.com, 小风风!
[wyf@VM_0_16_centos developer]$
2回答
-
qq_玄夜幻翼_0
提问者
2018-03-15
自动化发布的时候不能用sudo执行deploy.sh 不然公钥获取不对
012018-03-17 -
polo哦
2018-03-15
同学你可能是云服务器上的git并没有将公钥绑定在你的码云账号中哦~
032018-03-15
相似问题