【发布时间】:2019-07-24 18:15:20
【问题描述】:
我在运行 apache 和 git 的 debian 9 服务器上的云上有一个远程存储库。 Apache 设置为重定向到 https/SSL
我怎样才能让任何人都可以克隆我的存储库而无需在该服务器上登录?
在我的本地计算机上,该计算机上的登录凭据为该服务器上的用户 git,
git clone git@example.com:~/MyProject
作品 但在另一台电脑上,不起作用
我试过了
$ git clone ssh://example.com/~/MyProject.git
Cloning into 'MyProject'...
user@example.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
【问题讨论】:
-
你如何配置你的 git 服务器?
-
我应该如何配置我的 git 服务器?我什至有一个 git 服务器吗?应该不会
标签: git