gpt4 book ai didi

ubuntu - Ubuntu 服务器上的 Gitlab+Gitolite : why it doesn't work using with windows clients?

转载 作者:行者123 更新时间:2023-12-04 18:32:39 24 4
gpt4 key购买 nike

我试图在 Ubuntu 上设置 gitolite 和 [GitLab][1] 并且它正在工作。我可以通过 admin@local.host 克隆、推送和拉入在 Linux 中。 但它不适用于 Windows .
我通过 GitLab 创建了用户并在该用户(Windows 用户)中添加了 ssh key 。

当我尝试克隆存储库时,出现密码提示。
这就像 Ubuntu 和 Windows 上的 key 不同步。我做了chmod: 700- .ssh and 600- authorized_keys但它不起作用。所以我不知道我在这里错过了什么。

>   [1] OH IMPORTANT! You need to convert putty key into openssh key and
> put it in the account.

最佳答案

在 Windows 上检查环境变量 %HOME% :

默认情况下未定义,您的 ssh 将需要它来查找您的公钥和私钥(存储在 %HOME%\.ssh\id_rsa(.pub) 下)

在这种情况下,OP Sam Mie确认这是服务器地址解析问题:

I've changed the name of server into ip address like from git@localhost into git@198.xxx.x.x and it works.

关于ubuntu - Ubuntu 服务器上的 Gitlab+Gitolite : why it doesn't work using with windows clients?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12531255/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com