Commit 6b78053d759e7d8a27afa745ba404131ff8d7877
1 parent
886cf2f5
Exists in
master
and in
4 other branches
Add SSH custom port support for install/installation.md
Showing
1 changed file
with
14 additions
and
0 deletions
Show diff stats
doc/install/installation.md
... | ... | @@ -361,6 +361,20 @@ a different host, you can configure its connection string via the |
361 | 361 | # example |
362 | 362 | production: redis.example.tld:6379 |
363 | 363 | |
364 | +## Custom SSH Connection | |
365 | + | |
366 | +If your ssh port is a non-standard port, you must configure the ssh config of | |
367 | +user *gitlab*. | |
368 | + | |
369 | + sudo -u gitlab -H vim /home/gitlab/.ssh/config | |
370 | + | |
371 | + # Edit this file | |
372 | + host localhost | |
373 | + user git | |
374 | + port 888 # Your port number | |
375 | + hostname YOUR_SERVER_NAME or IP; # e.g., source.example.com or 127.0.0.1; | |
376 | + | |
377 | +Of course, you should change the ssh port of `config\gitlab.yml` to your custom port. | |
364 | 378 | |
365 | 379 | ## User-contributed Configurations |
366 | 380 | ... | ... |