小编Sma*_*ell的帖子

龟GIT + Gitolite 3

我刚刚在 debian 上设置了 git + Gitolite 服务器,使用 puttygen 在我的工作站(Windows)上生成了密钥对,并在服务器上使用注册了第一个 pub 密钥

gitosis setup -pk firstuser.pub
Run Code Online (Sandbox Code Playgroud)

然后我使用 TortoiseGit 克隆 gitolite-admin 存储库,使用 url:git@git.myserv.com:gitolite-admin 和 tel Tortoise 使用firstuser.ppk 作为私钥。到目前为止它运行良好。

然后我想测试添加用户并在我的工作站上创建新的存储库。

我在conf文件中添加了一个部分:

repo testcreation
    RW+     =   seconduser
Run Code Online (Sandbox Code Playgroud)

我在工作站上为第二个用户生成第二个 ssh 密钥对。只需将 secondaryuser.pub 放入 keydir/commit 中并推送新配置即可。

配置seam就可以了,我的新用户pub key添加到服务器端git用户的~/.ssh/authorized_keys中。

我使用 Tortoise 在我的工作站上设置了一个新的存储库,添加了一个新的遥控器:

 name : origin
 url : git@git.myserv.com:testcreation
 Putty Key : seconduser.ppk
Run Code Online (Sandbox Code Playgroud)

然后推送创建repo

TortoiseGit Log :

git.exe push --all --progress  "origin"

FATAL: W any testcreation firstuser DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not …
Run Code Online (Sandbox Code Playgroud)

git ssh tortoisegit gitolite

2
推荐指数
1
解决办法
1806
查看次数

标签 统计

git ×1

gitolite ×1

ssh ×1

tortoisegit ×1