summaryrefslogtreecommitdiff
path: root/vm-data
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-08-30 08:08:42 +0100
committerLars Wirzenius <liw@liw.fi>2012-08-30 08:08:42 +0100
commit80598222ca4c7521685ced10a4dc4e93d47d2de5 (patch)
treef8d90c5857ac9cdde0ca17710317cb0335957830 /vm-data
parent0c28f26b9e907c5b27c346f4f14955dcc41f84bc (diff)
downloadjenkinstool-80598222ca4c7521685ced10a4dc4e93d47d2de5.tar.gz
Disable ssh host key checking
Diffstat (limited to 'vm-data')
-rwxr-xr-xvm-data/jenkins.customize3
-rwxr-xr-xvm-data/worker.customize3
2 files changed, 6 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/.
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/.