Commit 5c504ed863e6caf04306a2e4bb4954ccdf9d1f77
Exists in
master
and in
4 other branches
Merge pull request #2632 from yin8086/SSHPort
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
| @@ -352,6 +352,20 @@ a different host, you can configure its connection string via the | @@ -352,6 +352,20 @@ a different host, you can configure its connection string via the | ||
| 352 | # example | 352 | # example |
| 353 | production: redis.example.tld:6379 | 353 | production: redis.example.tld:6379 |
| 354 | 354 | ||
| 355 | +## Custom SSH Connection | ||
| 356 | + | ||
| 357 | +If your ssh port is a non-standard port, you must configure the ssh config of | ||
| 358 | +user *gitlab*. | ||
| 359 | + | ||
| 360 | + sudo -u gitlab -H vim /home/gitlab/.ssh/config | ||
| 361 | + | ||
| 362 | + # Edit this file | ||
| 363 | + host localhost | ||
| 364 | + user git | ||
| 365 | + port 888 # Your port number | ||
| 366 | + hostname YOUR_SERVER_NAME or IP; # e.g., source.example.com or 127.0.0.1; | ||
| 367 | + | ||
| 368 | +Of course, you should change the ssh port of `config\gitlab.yml` to your custom port. | ||
| 355 | 369 | ||
| 356 | ## User-contributed Configurations | 370 | ## User-contributed Configurations |
| 357 | 371 |