gpt4 book ai didi

自定义 SSH 端口上的 Gitlab

转载 作者:行者123 更新时间:2023-12-02 13:58:25 27 4
gpt4 key购买 nike

我尝试安装 Gitlab,但无法输入自定义 SSH 端口。

已经将 gitlab.yml 中的端口设置为我的自定义端口,并创建了文件

/home/gitlab/gitlab/.ssh/config

用我的属性:
Host localhost
Port 100001

如所述 here .

但它在测试时仍然显示以下消息:
bundle exec rake gitlab:app:status RAILS_ENV=production
Starting diagnostic
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............exists
/home/git/repositories/ is writable?............YES
ssh: connect to host localhost port 22: Connection refused
fatal: The remote end hung up unexpectedly
Can clone gitolite-admin?............YES
UMASK for .gitolite.rc is 0007? ............YES
/home/git/.gitolite/hooks/common/post-receive exists? ............YES

Finished

我无法在 Gitlab 中添加我的公共(public) ssh key ,它显示“GitLab 无法访问您的 Gitolite 系统。”

任何人都可以帮忙吗?

最佳答案

你至少有两个问题。

配置文件的正确路径是/home/gitlab/.ssh/config

您不能使用端口 100001,因为它不存在。端口范围从 1 到 65535,我建议您使用超过 9000 的端口。

关于自定义 SSH 端口上的 Gitlab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12819353/

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