Commit 7e40684b476f89db69cce22a9170375456716f30

Authored by Dmitriy Zaporozhets
1 parent 886cf2f5

Better solution for strict key check

Showing 1 changed file with 4 additions and 13 deletions   Show diff stats
doc/install/installation.md
@@ -149,20 +149,11 @@ Fix the directory permissions for the repositories: @@ -149,20 +149,11 @@ Fix the directory permissions for the repositories:
149 sudo chown -R git:git /home/git/repositories/ 149 sudo chown -R git:git /home/git/repositories/
150 150
151 151
152 -## Disable StrictHostKeyChecking for localhost and your domain 152 +## Add domains to list to the list of known hosts
153 153
154 - echo "Host localhost  
155 - StrictHostKeyChecking no  
156 - UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config  
157 -  
158 - echo "Host YOUR_DOMAIN_NAME  
159 - StrictHostKeyChecking no  
160 - UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config  
161 -  
162 - # If gitolite domain differs  
163 - echo "Host YOUR_GITOLITE_DOMAIN  
164 - StrictHostKeyChecking no  
165 - UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config 154 + sudo -u gitlab -H ssh git@localhost
  155 + sudo -u gitlab -H ssh git@YOUR_DOMAIN_NAME
  156 + sudo -u gitlab -H ssh git@YOUR_GITOLITE_DOMAIN_NAME
166 157
167 158
168 ## Test if everything works so far 159 ## Test if everything works so far