diff --git a/readme-vars.yml b/readme-vars.yml index b2c3c3e..a5844fd 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -76,6 +76,7 @@ app_setup_block: | The keys generated by this script are only displayed on your console output, so make sure to save them somewhere after generation. # changelog changelogs: + - {date: "04.05.24:", desc: "Display the SSH host public keys every time the container starts."} - {date: "09.03.24:", desc: "Rebase to Alpine 3.19."} - {date: "12.06.23:", desc: "Rebase to Alpine 3.18, deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"} - {date: "05.03.23:", desc: "Rebase to Alpine 3.17."} diff --git a/root/etc/s6-overlay/s6-rc.d/init-openssh-server-config/run b/root/etc/s6-overlay/s6-rc.d/init-openssh-server-config/run index e5ba882..dd560b3 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-openssh-server-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-openssh-server-config/run @@ -41,6 +41,10 @@ if [[ ! -L /etc/ssh ]]; then ssh-keygen -A fi +# display SSH host public key(s) +echo "SSH host public key(s):" +cat /config/ssh_host_keys/ssh_host_*.pub + # custom port if [[ -n "${LISTEN_PORT}" ]]; then sed -i "s/^#Port [[:digit:]]\+/Port ${LISTEN_PORT}"/ /etc/ssh/sshd_config