summaryrefslogtreecommitdiff
path: root/vm-data/jenkins.customize
diff options
context:
space:
mode:
Diffstat (limited to 'vm-data/jenkins.customize')
-rwxr-xr-xvm-data/jenkins.customize3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm-data/jenkins.customize b/vm-data/jenkins.customize
index dc34e40..fa411b6 100755
--- a/vm-data/jenkins.customize
+++ b/vm-data/jenkins.customize
@@ -81,6 +81,9 @@ install -m 0644 vm-data/jenkins.user-key.pub \
# Install the worker user key into Jenkins's allowed_keys file.
install -m 0600 vm-data/worker.user-key.pub \
"$rootdir/var/lib/jenkins/.ssh/authorized_keys"
+
+# Disable ssh host key checking.
+echo "StrictHostKeyChecking no" >> "$rootdir/etc/ssh/ssh_config"
# Make sure the Jenkins .ssh directory, with contents, is all owned by Jenkins.
chroot "$rootdir" chown -R jenkins:jenkins /var/lib/jenkins/.ssh/.