首页 > 其他 > 详细

GitLab non-standard SSH port

时间:2017-05-16 10:23:07      阅读:459      评论:0      收藏:0      [点我收藏+]
/*****************************************************************************
 *                      GitLab non-standard SSH port 
 * 说明:
 *     有时候GitLab Server使用非标准的SSH port,GitLab Web界面上显示出来会比较
 * 方便一点。
 *
 *                                            2017-5-16 台湾 中和区 曾剑锋
 ****************************************************************************/

一、参考文档:
    1. Gitlab with non-standard SSH port (on VM with Iptable forwarding)
        http://stackoverflow.com/questions/18517189/gitlab-with-non-standard-ssh-port-on-vm-with-iptable-forwarding

二、GitLab设定:
    1. 直接修改GitLab设定:
        1. config/gitlab.yml (找不到就用find找一下)
            ssh_port: 766
        2. 重启;
    2. 修改GitLab系统配置:
        1. /etc/gitlab/gitlab.rb
            gitlab_rails[gitlab_shell_ssh_port] = 766
        2. gitlab-ctl reconfigure

 

GitLab non-standard SSH port

原文:http://www.cnblogs.com/zengjfgit/p/6859826.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!