Windows 上的 Gitosis 和 TortoiseGit
我遇到了 Gitosis 和 TortoiseGit。
我使用了指南如何使用 Gitosis 和 Gitweb 设置 GIT 服务器在我的 Debian 系统上设置 Gitosis。
我没有
ssh-keygen -t rsa
scp /home/myuser/.ssh/id_rsa.pub ${SERVER_IP}:myuser.pub
使用 PuTTYgen 为我的本地 Windows 7 计算机生成公钥/私钥对,将其上传到我的服务器并用它初始化Gitosis(同一用户:git,没有密码)。
现在我想使用 TortoiseGit 克隆 Gitosis 的管理员存储库(使用我的私钥文件 .ppk-file
)。它一直要求我输入用户“git”的密码 - 该密码不存在。为用户“git”设置密码后,克隆操作的结果如下:
git.exe clone --progress -v "git@SERVER:gitosis-admin.git" "PATH\gitosis-admin"
fatal: 'gitosis-admin.git' does not appear to be a git repository
Initialized empty Git repository in PATH/gitosis-admin/.git/
fatal: The remote end hung up unexpectedly
SERVER
& PATH
有效。
我该如何解决这个问题?我已经用 plink-link 重新安装了 TortoiseGit,而不是 OpenSSH。
I am having a strange problem with Gitosis and TortoiseGit.
I used the guide How to setup a GIT server with Gitosis and Gitweb to setup Gitosis on my Debian system.
Instead of
ssh-keygen -t rsa
scp /home/myuser/.ssh/id_rsa.pub ${SERVER_IP}:myuser.pub
I used PuTTYgen to generate a public/private keypair for my local Windows 7 computer, uploaded it to my server and initialized the Gitosis (same user: git, without a password) with it.
Now I wanted to clone the administrator repository of Gitosis with TortoiseGit (using my private keyfile, .ppk-file
). It kept asking me for a password for the user "git" - which does not exists. After setting a password for the user "git" the clone-operation resulted in this:
git.exe clone --progress -v "git@SERVER:gitosis-admin.git" "PATH\gitosis-admin"
fatal: 'gitosis-admin.git' does not appear to be a git repository
Initialized empty Git repository in PATH/gitosis-admin/.git/
fatal: The remote end hung up unexpectedly
SERVER
& PATH
were valid.
How do I solve this? I reinstalled TortoiseGit already with plink-link thingy instead of OpenSSH.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。 Gitosis 无法处理 PuTTYgen 生成的 SSH1 密钥。使用 Git 通过控制台生成的 OpenSSH 密钥。查看 GitHub 的任何教程,了解有关如何操作的更多信息。
The problem was solved. Gitosis can't handle SSH1 keys generated by PuTTYgen. Use OpenSSH keys generated by Git via the console. Check out any tutorial for GitHub for more information on how to do it.