summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-17 11:57:47 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-17 11:57:47 +0200
commit7e40684b476f89db69cce22a9170375456716f30 (patch)
tree8c9bfb7e5b3cadf1a38de3a3a90a75de4b8b3bfb
parent886cf2f5be5673cc99795322671e17551ee6fa3b (diff)
downloadgitlab-ce-7e40684b476f89db69cce22a9170375456716f30.tar.gz
Better solution for strict key check
-rw-r--r--doc/install/installation.md17
1 files changed, 4 insertions, 13 deletions
diff --git a/doc/install/installation.md b/doc/install/installation.md
index eec5bb75690..12a0cc917be 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -149,20 +149,11 @@ Fix the directory permissions for the repositories:
sudo chown -R git:git /home/git/repositories/
-## Disable StrictHostKeyChecking for localhost and your domain
+## Add domains to list to the list of known hosts
- echo "Host localhost
- StrictHostKeyChecking no
- UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config
-
- echo "Host YOUR_DOMAIN_NAME
- StrictHostKeyChecking no
- UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config
-
- # If gitolite domain differs
- echo "Host YOUR_GITOLITE_DOMAIN
- StrictHostKeyChecking no
- UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config
+ sudo -u gitlab -H ssh git@localhost
+ sudo -u gitlab -H ssh git@YOUR_DOMAIN_NAME
+ sudo -u gitlab -H ssh git@YOUR_GITOLITE_DOMAIN_NAME
## Test if everything works so far