ubuntu - 服务器意外关闭网络连接gitlab和gitolite

标签 ubuntu gitolite gitlab

我使用 remastersys 备份制作了一些 gitlab 和 gitolite 服务器的备份镜像,并从镜像文件重新安装。问题是 Windows 客户端无法连接到服务器。当我尝试克隆 repo 时,它说服务器意外关闭了网络连接。我不知道解决方案是什么,因为linux客户端没有问题。

当我尝试通过 git bash 克隆存储库时,它说“没有主机 key alg”,我不知道这是什么意思。

我使用的服务器是 ubuntu 12.04,windows 客户端是 windows 7 和 XP。我试图重新安装 ssh 但这没有帮助。有谁知道如何解决这个问题。

最佳答案

它应该与 ssh 安装问题有关。
This thread ,例如,描述:

I was having this same problem; I would get the error message 'could not load host key: ...' I tried reinstalling ssh from scratch, all that stuff - when I tried logging in from a remote server (openbsd) it would deny me saying "no hostkey alg" ...

I found out that what I was doing wrong was that when I ran init.d/openssh keygen, I was putting in a passphrase.
When i re-ran openssh-keygen with an empty passphrase, it started working as expected.



OP Sam Mie添加 in the comments :

I have found I have to disable SELinux and it works.
See this thread:


setenforce disable
or
setenforce 0

Setting it to permissive will prevent selinux from stopping a policy violation.
It will only report it, but still allow the action to continue.



哦,谢谢,我在文件/etc/selinux/config中配置了现在可以通过 putty 连接到 Ubuntu .

关于ubuntu - 服务器意外关闭网络连接gitlab和gitolite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13159731/

相关文章:

mysql - Unix : Can't use backquote in MySQL command

git - 使用现有 Gitolite 配置设置 GitLab 的简便方法

multithreading - 通过 golang 进行 gitlab 抓取的问题

python - Jenkins:Stacktrace 和 GitLab 之间的链接

git - 从 docker 容器中的 gitolite repo 自动 pull

ldap - 基于ldap-groups访问gitlab

python - pyqt5不显示窗口

Ubuntu 中的 Python-MySQLdb 错误

linux - 从结果中提取值 Linux

linux - 如何完全删除 Gitosis 然后运行 ​​Gitolite?