标签:rails mamicode 地址 rest etc 推送 秘钥 shel configure
centos7
确保修改后的sshd端口和ssh端口一致,这里我都改为23456
修改了/etc/gitlab/gitlab.rb中的gitlab_rails[‘gitlab_shell_ssh_port‘]= 23456

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

等gitlab重新启动完毕后,此时新建仓库会发现ssh 地址已经添加自定义端口

这时在配置完ssh秘钥后,便可将代码推送到gitlab仓库

标签:rails mamicode 地址 rest etc 推送 秘钥 shel configure
原文地址:https://www.cnblogs.com/ifme/p/12851748.html