Commit 843ea5bf2239be273e684de4f4d99077c5fa5e0e

Authored by Riyad Preukschas
1 parent 5c504ed8

Update custom SSH connection section in installation guide

Showing 1 changed file with 7 additions and 10 deletions   Show diff stats
doc/install/installation.md
... ... @@ -354,18 +354,15 @@ a different host, you can configure its connection string via the
354 354  
355 355 ## Custom SSH Connection
356 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
  357 +If you are running SSH on a non-standard port, you must change the gitlab user'S SSH config.
361 358  
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;
  359 + # Add to /home/gitlab/.ssh/config
  360 + host localhost # Give your setup a name (here: override localhost)
  361 + user git # Your remote git user
  362 + port 2222 # Your port number
  363 + hostname 127.0.0.1; # Your server name or IP
367 364  
368   -Of course, you should change the ssh port of `config\gitlab.yml` to your custom port.
  365 +You also need to change the corresponding options (e.g. ssh_user, ssh_host, admin_uri) in the `config\gitlab.yml` file.
369 366  
370 367 ## User-contributed Configurations
371 368  
... ...