summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jenkins-home/authorized_keys1
-rwxr-xr-xupdate_jdn.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/jenkins-home/authorized_keys b/jenkins-home/authorized_keys
new file mode 100644
index 00000000..a47f3e93
--- /dev/null
+++ b/jenkins-home/authorized_keys
@@ -0,0 +1 @@
+command="/srv/jenkins/bin/reproducible_remote_scheduler.py ${SSH_ORIGINAL_COMMAND#* }",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,from="5.153.231.21" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDpGiuER4rTtpgpvaSgHpILeln7Qq+arV6a+EhgKlxnInmV6OwA/LacqyEq8sptZYrppllmr9v1d58NVH6uGXHe0p8TYrBBaYNuuMCf2wsKdXH1VTCIiv27XYyS3iYQJnt1n4+4aae81iYA0aRbv5nV2lhlMc7MsK7jNcCxRhYtwEVPMyvLWpWeRmA7oum+0iQl5HCqV5a4Vn5/IMmH4PWGMB+Ga+EDk7XliHQthh6FpfM2biAgmcA+2Y4DTOzvtm7WJQkn3eui1J50Z5wTKBEFZ/raHxee0dt6gYuIDU9g7yavs0CiwFWsqLEH15WJ+fO1/nfl9EV+43FEb/ZEhR6HsPKr/MSF4wckjNva9mJtpoGOLUgToW060TTVnouIayHK8+x62elgReHy3z18MNvuPXuFJaxZYqGnJa4IDr4YvrdRe5DGpUhG/Jqp1cRUxbZ2zZC43ytV8VNXISefY38dO6HEj2H81y/RTMNmOVwNjI4Iy865Tjnrroj18P5G8ioHMU8SzKY/pzSGvdHhrfOk4uv3LZSDN4W7aSUgD2XtPDgjeADZIBE2QV4FIcAF3dT3aAYshE7hpgJUYphIAp4KxQQPsw67NWh+UFnHGybbcp4zGW3SZ8jxj8UUpuNM15JqRG+8nSiDHXmXMahzhyfFEvXBrMMGf+SIYI/CA4OLhQ== reproducible@moszumanska
diff --git a/update_jdn.sh b/update_jdn.sh
index a5ea4a7b..1011f730 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -226,6 +226,11 @@ for dir in bin logparse job-cfg features live ; do
chown -R jenkins-adm.jenkins-adm /srv/jenkins/$dir
done
cp procmailrc /var/lib/jenkins/.procmailrc
+mkdir /var/lib/jenkins/.ssh
+cp jenkins-home/authorized_keys /var/lib/jenkins/.ssh/authorized_keys
+chown -R jenkins:jenkins /var/lib/jenkins/.ssh
+chmod 700 /var/lib/jenkins/.ssh
+chmod 600 /var/lib/jenkins/.ssh/authorized_keys
explain "Jenkins updated."
cp -pr README INSTALL TODO CONTRIBUTING d-i-preseed-cfgs /var/lib/jenkins/userContent/
TMPFILE=$(mktemp)