我使用 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-ranopenssh-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 preventselinux
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/