2012-10-10 55 views
2

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

已经设置在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我的SSH密钥,它说:“GitLab无法访问您的Gitolite系统。”

任何人都可以帮忙吗?

回答

2

您至少有两个问题。

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

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

+0

/home/gitlab/.ssh/config存在,并使用“localhost”作为主机,而我的正确ssh端口作为“Port ”。我只是不想在这里发布我的端口。谢谢,但问题仍然存在。 – joe8

+0

尝试检查您是否确实正确设置了您的ssh。 成为gitlab用户(也许[#sudo su -s/bin/bash gitlab])并检查您的ssh配置是否工作: [#ssh git @ localhost]。如果你连接到gitolite,那么你的.ssh/config一切正常,问题在于gitlab。 – Marios

+3

它超过9000! – GameCharmer