赞
踩
错误提示:
Pushing to git@gitlab-office.xxxx.com:abc/abc.git
ssh: connect to host gitlab-office.xxxx.com port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方法
- vi /etc/gitlab/gitlab.rb
- gitlab_rails['gitlab_shell_ssh_port'] = 2222 #ssh的端口
- #重载配置
- gitlab-ctl reconfigure
推出gitlab 账户重新登录
原来的ssh://git@192.168.0.80:/abc/abc.git变成了
ssh://git@192.168.0.80:2222/abc/abc.git
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。