我有以下错误:
ssh: connect to host git.limeworks.eu port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
现在,我在本地 .ssh/config 文件中的配置是:
host limeworks
user git
port 6565
hostname git.limeworks.eu;
在远程 gitlab.yml 中:
gitlab:
## Web server settings
host: git.limeworks.eu
port: 6565
此外,这里是 nginx 设置(/sites-enabled/gitlab):
server {
listen 80; # e.g., listen 192.168.1.1:80; In most cases *:80 is a good idea
server_name git.limeworks.eu; # e.g., server_name source.example.com;
...
每次修改后我都重启了 gitlab 和 nginx 服务,但没有任何效果!
编辑:这里还值得注意的是来自远程服务器的 sshd_config 的一些片段
Port 9595
AllowUsers rrw git