当前位置:   article > 正文

gitlab修改默认ssh端口_gitlab ssh_port

gitlab ssh_port

1.修改gitlab的gitlab.yml

/home/git/gitlab/config/gitlab.yml

修改gitlab_shell中的ssh_port 

gitlab_shell:
    # REPOS_PATH MUST NOT BE A SYMLINK!!!
    repos_path: /home/git/repositories/
    hooks_path: /home/git/gitlab-shell/hooks/


    # Git over HTTP
    upload_pack: true
    receive_pack: true


    # If you use non-standard ssh port you need to specify it
    ssh_port: 10000

-----------------------

然后重启gitlab

2.修改 /etc/ssh/sshd_config

Port 10000

重启sshd


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/88009
推荐阅读
相关标签
  

闽ICP备14008679号