summaryrefslogtreecommitdiff
path: root/vm-data/worker.customize
diff options
context:
space:
mode:
Diffstat (limited to 'vm-data/worker.customize')
-rwxr-xr-xvm-data/worker.customize3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm-data/worker.customize b/vm-data/worker.customize
index 72a85e1..b10be59 100755
--- a/vm-data/worker.customize
+++ b/vm-data/worker.customize
@@ -48,6 +48,9 @@ install -m 0644 vm-data/worker.user-key.pub \
# Install the Jenkins user key into Jenkins's allowed_keys file.
install -m 0600 vm-data/jenkins.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/.