Commit 3933930538d68b04751caea9030d4f3c59649b2b
1 parent
60038a99
Exists in
master
and in
4 other branches
Sctrict host instructions
Showing
1 changed file
with
17 additions
and
0 deletions
Show diff stats
doc/install/installation.md
... | ... | @@ -149,6 +149,23 @@ Fix the directory permissions for the repositories: |
149 | 149 | sudo chmod -R ug+rwXs,o-rwx /home/git/repositories/ |
150 | 150 | sudo chown -R git:git /home/git/repositories/ |
151 | 151 | |
152 | + | |
153 | +## Disable StrictHostKeyChecking for localhost and your domain | |
154 | + | |
155 | + echo "Host localhost | |
156 | + StrictHostKeyChecking no | |
157 | + UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config | |
158 | + | |
159 | + echo "Host YOUR_DOMAIN_NAME | |
160 | + StrictHostKeyChecking no | |
161 | + UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config | |
162 | + | |
163 | + # If gitolite domain differs | |
164 | + echo "Host YOUR_GITOLITE_DOMAIN | |
165 | + StrictHostKeyChecking no | |
166 | + UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config | |
167 | + | |
168 | + | |
152 | 169 | ## Test if everything works so far |
153 | 170 | |
154 | 171 | # Clone the admin repo so SSH adds localhost to known_hosts ... | ... | ... |