我一直在敲我的头靠在了一段墙现在,并没有在我附近的人知道的比我在这一点上做的。安装的Git仓库 - SSH问题
我的办公室里,他们要使用一个中央的Git仓库实验室箱 - 主要用于测试各种事情。当然,他们还希望我能够获得一些设置git的经验,以便我们稍后可以设置其他git实例。
我运行Windows 7与OEL 5.7 VM,与箱体运行OEL 5.5。从我的虚拟机,我SSH进入实验室,并开始修补。在安装git和gitosis之后,我设法让本地实例工作。我可以看到git存储库很好,如果我尝试在本地克隆它,它就像梦一样。但是,如果我尝试从我的虚拟机,它要么A.)通过SSH踢我了fatal: 'testproject.git' does not appear to be a git repository
或B)踢我出Permission denied (publickey,gssapi-with-mic)
,这取决于我如何调用饭桶。
例子:我配置我创建(本地测试)如下访问测试项目:
[group team]
writable = testproject
members = [email protected] cwerness [email protected] [email protected]
这是我第一次的经验建立一个Git仓库,所以我想包括我的关于基地远程用户。因此,成员部分的冗余。
当我尝试用我的用户名来克隆仓库而已,我得到
[[email protected] Desktop]$ git clone [email protected]:testproject.git
Cloning into testproject...
Enter passphrase for key '/home/cwerness/.ssh/id_rsa':
fatal: 'testproject.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
但是,如果我尝试用更多的信息,克隆库,我得到
[[email protected] Desktop]$ git clone "[email protected]"@10.1.1.10:testproject.git
Cloning into testproject...
Permission denied (publickey,gssapi-with-mic).
fatal: The remote end hung up unexpectedly
我有存储在/ keydir文件夹中的所有公钥。该存储库已创建并由用户oracle
拥有,并且我已在上述克隆命令中尝试了该用户及其域的所有排列,因此无效。此外,我想再次建立的〜/ .ssh/config文件这样
Host labbox
Hostname 10.1.1.10
User cwerness
IdentityFile /home/cwerness/.ssh/id_rsa
,我尝试了所有不同的方式进行连接,从两个用户。没有任何东西给我比我已有的更多信息。
盒设置为验证通过公共密钥SSH连接,工作正常。我可以通过SSH登录到cwerness
,没有任何问题。
这越来越成为一个巨大的头痛对我来说,我想,如果有人可以告诉我究竟是如何,我太傻了,如果没有办法解决这个问题。
尝试:git clone git://[email protected]:testporoject.git –
gitosis很久以前被gitolite所取代 – knittl
git //完全不起作用,并且存储库存在于/ home/oracle/repositories中/ – CWerness