Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

GitLab modified the default port solution when it encountered ssh.

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

It is really easy for GItLab to use SSH key-free authentication, but when it is configured, it is found that the default port of ssh (22) has been modified, which is unreachable. Many partners have encountered this problem. After some thinking, I feel the need to modify the server configuration, here to write a specific blog, so that everyone less pit.

Modify step

1. Modify ssh port (skip this step) Port port 2, modify / etc/gitlab/gitlab.rb [the configuration in gitlab.yml will be overwritten by this] / / later modify your own ssh port gitlab_rails ['gitlab_shell_ssh_port'] = 213863 to make it effective. Gitlab-ctl reconfigure defaults to port 22, but no port will appear for direct access. )

Modified effect:

Test: (as long as ssh trust is done well)

Method 1:

Method 2:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report