File tree Expand file tree Collapse file tree
root/etc/s6-overlay/s6-rc.d/init-openssh-server-config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ pipeline {
7272 fi
7373 done
7474 fi
75- docker system prune -f --volumes || : '''
75+ docker system prune -f --volumes || :
76+ docker image prune -af || :
77+ '''
7678 script{
7779 env. EXIT_STATUS = ' '
7880 env. LS_RELEASE = sh(
@@ -754,7 +756,8 @@ pipeline {
754756 if [[ -n "${containers}" ]]; then
755757 docker stop ${containers}
756758 fi
757- docker system prune -af --volumes || :
759+ docker system prune -f --volumes || :
760+ docker image prune -af || :
758761 '''
759762 }
760763 }
@@ -1180,6 +1183,7 @@ EOF
11801183 done
11811184 fi
11821185 docker system prune -f --volumes || :
1186+ docker image prune -af || :
11831187 '''
11841188 cleanWs()
11851189 }
Original file line number Diff line number Diff line change @@ -340,6 +340,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
340340
341341# # Versions
342342
343+ * ** 10.02.25:** - Add support for sshd_config.d
343344* ** 12.01.25:** - Rebase to Alpine 3.21.
344345* ** 24.11.24:** - Move sshd_config to /config/sshd/sshd_config.
345346* ** 31.05.24:** - Rebase to Alpine 3.20.
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ init_diagram: |
121121# changelog
122122changelogs :
123123 - {date: "12.02.25:", desc: "Add support for trusted user CA keys"}
124+ - {date: "10.02.25:", desc: "Add support for sshd_config.d"}
124125 - {date: "12.01.25:", desc: "Rebase to Alpine 3.21."}
125126 - {date: "24.11.24:", desc: "Move sshd_config to /config/sshd/sshd_config."}
126127 - {date: "31.05.24:", desc: "Rebase to Alpine 3.20."}
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ if [[ ! -d /config/ssh_host_keys ]]; then
5151 cp /etc/ssh/ssh_host_* /config/ssh_host_keys
5252fi
5353
54+ # Enable sshd_config.d if mounted
55+ if [[ -d /config/sshd/sshd_config.d ]]; then
56+ sed -i 's/Include \/etc\/ssh\/sshd_config.d\/\*.conf/Include \/config\/sshd\/sshd_config.d\/\*.conf/' /config/sshd/sshd_config
57+ sed -i '/Include \/config\/sshd\/sshd_config.d/s/^#*//' /config/sshd/sshd_config
58+ fi
59+
5460# display SSH host public key(s)
5561echo "SSH host public key(s):"
5662cat /config/ssh_host_keys/ssh_host_*.pub
You can’t perform that action at this time.
0 commit comments