Linux git over ssh第二个用户可以';t克隆

Linux git over ssh第二个用户可以';t克隆,linux,git,ssh,Linux,Git,Ssh,我们是一个项目的两名开发人员,我在一台服务器(ArchLinux)上设置了一个git存储库,我们都可以通过ssh访问。git存储库是通过以下方式创建的: mkdir project touch project/readme.txt git init project cd projet git add . git commit -m 'initial commit' git push origin master cd .. git clone --bare project.git cd pro

我们是一个项目的两名开发人员,我在一台服务器(ArchLinux)上设置了一个git存储库,我们都可以通过ssh访问。git存储库是通过以下方式创建的:

mkdir project
touch project/readme.txt

git init project
cd projet
git add .
git commit -m 'initial commit'
git push origin master
cd ..
git clone --bare project.git

cd project.git
git config core.sharedRepository true

cd ..
setfacl -R -m g:<group name>:rwX project.git
find gitrepo -type d | xargs setfacl -R -m d:g:<group name>:rwX

我们可以将第二个用户与SSH连接起来,这样就不会有问题,所以密码也不错。你知道我们为什么会遇到这个问题吗?

看起来你没有设置

阅读整篇文章(这是一篇短文),然后按照步骤进行操作。
不要跳过定义哪些项目可以共享的部分。

我在那本书的4.4部分停了下来(得到了纸质版)。我会读这篇文章,然后带着我的反馈回来。
git clone user1@ip:/path/project.git (over ssh)
password: <enter user1 password>
git clone user2@ip:/path/project.git (over ssh)
password: <enter user2 password>
fatal: '/path/project.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.