From 80598222ca4c7521685ced10a4dc4e93d47d2de5 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 30 Aug 2012 08:08:42 +0100 Subject: Disable ssh host key checking --- vm-data/jenkins.customize | 3 +++ vm-data/worker.customize | 3 +++ 2 files changed, 6 insertions(+) (limited to 'vm-data') 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/. 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/. -- cgit v1.2.1