首页 > 其他 > 详细

ssh 协议执行repo sync 报错:Permission denied (publickey)

时间:2015-02-13 18:17:34      阅读:1054      评论:0      收藏:0      [点我收藏+]

1、ssh key

  已经添加ssh key到gerrit服务器,并且执行ssh协议的git clone可以正常克隆代码到本地,可见不是ssh key的问题。

2、manifest清单文件配置

  最初在manifest清单文件中配置:

  <remote name="origin" fetch="ssh://git@ip:29418"/>

  或者:

  <remote name="origin" fetch="ssh://ip:29418"/>

3、出现问题

  在客户端执行repo init -u http://ip/manifest --repo-url http://ip/repo ,运行正常。

  但是执行repo sync后,报错:

  Permission denied (publickey).
  fatal: The remote end hung up unexpectedly


4、解决方法

  修改manifest文件的fetch元素:

  <remote name="origin" fetch=".."/>


ssh 协议执行repo sync 报错:Permission denied (publickey)

原文:http://www.cnblogs.com/xiaoerlang/p/4290621.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!