「已注销」 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 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog