「已注销」 2019-09-09 15:07 采纳率: 0%
浏览 861

git自己搭建的server。用linux可以git clone , win10 不能git clone

我用自己电脑搭建好了git服务器,使用手机Termux和virtualbox中的kali_linux都可以git clone 。
认证使用的是密钥认证。

win10中有加入ssh-add 密钥,也添加密钥成功,但就是最后一步git clone 时提示权限不足。错误如下:

**
git clone git@xxx.xxx.xxx.xxx:stores/test.git**
Cloning into 'test'...
git@xxx.xxx.xxx.xxx: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).              
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

xxx.xxx.xxx.xxx是我自己主机ip。

还有一个问题是:git clone 能不能指定端口,网上的 git clone git://name@host:port/direcotory/test.git 是不能用的。

  • 写回答

2条回答

  • u011351910 2019-09-13 15:51
    关注

    密钥的权限是不是600

    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题