GIT服务器在Ubuntu上安装失败 [英] GIT Server install failing on Ubuntu

查看:200
本文介绍了GIT服务器在Ubuntu上安装失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照这些说明安装我自己的git服务器。

I'm trying to install my own git server with these instructions.

http://cisight.com/how-to-setup-git-server-using-gitolite-in- ubuntu-11-10-oneiric /

但我在这一点上被卡住了。

But I am get stuck at this point.

git clone --verbose  gitolite@ec2-xxx.compute-1.amazonaws.com:testing.git
Cloning into 'testing'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

我认为它与这:

gitolite@ip-xxxx:~$ gl-setup tmp/john.pub 

key_read: uudecode Aklkdfgkldkgldkgldkgfdlkgldkgdlfkgldkgldkgdlkgkfdnknbkdnbkdnbkdnbkfnbkdfnbkdnfbkdfnbdknbkdnbkfnbkdbnkdbnkdfnbkd john@example.com
 failed
fprint failed

我总是得到失败,我认为它阻止了我克隆回购。回购与gitolite-admin.git回购一起。权限如下:

I always get the fail and I think its preventing me from cloning repo.The repo is there along with gitolite-admin.git repo. The permissions are this:

drwxr-x--- 8 gitolite gitolite 4096 Jun  6 16:29 gitolite-admin.git
drwxr-x--- 7 gitolite gitolite 4096 Jun  6 16:29 testing.git

所以我的问题是我在这里错过了什么?

So my question is what am I missing here?

推荐答案

此线程报告:

This thread reports:


根据预感,我从我的已知主机中删除了我的git repo的IP地址。错误消失了。

acting on a hunch I removed the IP address of my git repo from my known hosts. The error immediately went away.

如果您收到相同的消息,请确定您的git repo的IP地址或域名。

搜索对于〜/ .ssh / known_hosts 文件中的值,并将其删除。你应该善后。

If you’re getting the same message, determine the IP address or domain name of your git repo.
Search for those values in your ~/.ssh/known_hosts file and remove them. You should be good to go after that.

可能是这样,或者你没有正确地生成你的ssh密钥。

It can be that, or you don't have generated your ssh key properly somehow.

ssh-keygen -t rsa -f "${HOME}/.ssh/gitoliteadm" -C "Gitolite Admin access (not interactive)" -q -P ""

这篇关于GIT服务器在Ubuntu上安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆