Commit 7e40684b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Better solution for strict key check

parent 886cf2f5
...@@ -149,20 +149,11 @@ Fix the directory permissions for the repositories: ...@@ -149,20 +149,11 @@ Fix the directory permissions for the repositories:
sudo chown -R git:git /home/git/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 sudo -u gitlab -H ssh git@localhost
StrictHostKeyChecking no sudo -u gitlab -H ssh git@YOUR_DOMAIN_NAME
UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config sudo -u gitlab -H ssh git@YOUR_GITOLITE_DOMAIN_NAME
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
## Test if everything works so far ## Test if everything works so far
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment