English 中文(简体)
git over ssh: 保存读取
原标题:git over ssh: Repository read access denied

我拥有一个电离层服务器,安装在含水层上。

[git@HOST ~]$ git clone -v git://HOST.com/repositories/Extras
Cloning into Extras...
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 12 (delta 3), reused 0 (delta 0)
Receiving objects: 100% (12/12), 23.54 MiB | 16.63 MiB/s, done.
Resolving deltas: 100% (3/3), done.

注:HOST.com不是真实的。

我现在想得到同样的事情,以便我能够增加隐私和认证。 目前,它没有发挥作用:

[git@HOST ~]$ git clone -v ssh://HOST.com/repositories/Extras
Cloning into Extras...
Enter passphrase for key  /home/git/.ssh/id_rsa :
ERROR:gitosis.serve.main:Repository read access denied
fatal: The remote end hung up unexpectedly

它看起来像SSH联线正在发挥作用,但盖特有某些许可问题。 不允许SEHCH。

在//log/mes中,我看到:

Sep 23 16:26:18 HOST sshd[32115]: Accepted publickey for git from X.X.X.X port 51023 ssh2
Sep 23 16:26:18 HOST sshd[32116]: fatal: mm_request_receive: read: Connection reset by peer
Sep 23 16:26:18 HOST sshd[32115]: pam_unix(sshd:session): session opened for user git by (uid=0)
Sep 23 16:26:19 HOST sshd[32121]: Received disconnect from X.X.X.X: 11: disconnected by user
Sep 23 16:26:19 HOST sshd[32115]: pam_unix(sshd:session): session closed for user git

没有人会就我可以开始研究的领域提出一些建议?

Thanks! Mike

最佳回答

感谢大家 最后,我带着托利特,但这不是问题的根源。 它是客户和SSH服务器之间的一个关键不匹配现象。 我认为我检查的一件简单的事情。 一旦我对用户进行了对等,我已经用 g子注册的公用钥匙及其~子/id_rsa.pub,所有事情都开始按预期进行。

感谢!

迈克

问题回答

如果你要花大量时间这样做,就能够更好地转向托里特。 用户不会受到任何影响,因为你可以把同样的钥匙投入到托利特行政大楼。

就你目前的问题而言,试图通过SSH和vvv的选择,以了解对使用钥匙的详细减小结果。

希望这一帮助。

它希望你重新使用吉特松。 您是否配置了“{......”),允许查阅你试图使用的存放处? 您是否安装了公共钥匙?

开始在您的结晶组合中转播 de:

[gitosis]
loglevel = DEBUG

这将在你与sh相连接时产生ver。

The most common causes of this problem are: emphasized text - A typo in the repository or user name. - The wrong key installed, or key filename not matching the username in the configuration.

减员产出将有效地突出这些问题。 例如,与我们的地方疏松症存放处连接,进行 de logging伐木,包括:

Access check for  lars@obliquity.example.com  as
   writable  on  gitosis-admin.git ...

(这显示了谁会认为我是疏松症)

found  lars@obliquity.example.com  in  admins 

(这表明I米组与否)

Access ok for  lars@obliquity.example.com  as
   writable  on  gitosis-admin 

(这显示我有出入)。





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签