在openSUSE Leap 15下尝试在GitAhead中添加远程GitLab帐户时,SSL握手失败



我在GitAhead中成功添加了Windows 10下的远程(私有(GitLab帐户,但在Linux openSUSE Leap 15下,我得到了";连接失败:SSL握手失败";。

注意,我可以从我想添加的GitLab中的存储库中克隆、拉取、提取、提交、推入存储库,我还尝试用重置SSH握手

$ ssh-keygen -R gitlab.mydomain.net
# Host gitlab.mydomain.net found: line 31
/home/user/.ssh/known_hosts updated.
Original contents retained as /home/user/.ssh/known_hosts.old
$ ssh git@gitlab.mydomain.net
The authenticity of host 'gitlab.mydomain.net (<IP>)' can't be established.
ECDSA key fingerprint is SHA256:**************.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitlab.mydomain.net,<IP>' (ECDSA) to the list of known hosts.
Welcome to GitLab, @UserName!
Connection to gitlab.mydomain.net closed.

但它仍然不起作用,有人知道在Linux下是否有什么可以配置的吗?

感谢

对于初学者,请检查服务器端目录的权限。主目录和.ssh目录应该用chmod 700处理。关键文件也是如此。

您应该在服务器上实现无密码登录。一旦这一点奏效,GitAhead应该会很好。如果您的服务器端/etc/passwd中有一个Git Shell,请将其替换为/bin/sh,以便发送您的公钥:在客户端上,输入ssh-copy-id -i yourprivatekeyfile somerandomgituser@ipofyourgitserver。之后,如果成功,您可以将/etc/passwd行重置回GitShell。

最新更新