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 @@ -76,6 +76,7 @@ app_setup_block: |
7676 The keys generated by this script are only displayed on your console output, so make sure to save them somewhere after generation.
7777# changelog
7878changelogs :
79+ - {date: "04.05.24:", desc: "Display the SSH host public keys every time the container starts."}
7980 - {date: "09.03.24:", desc: "Rebase to Alpine 3.19."}
8081 - {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)"}
8182 - {date: "05.03.23:", desc: "Rebase to Alpine 3.17."}
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ if [[ ! -L /etc/ssh ]]; then
4141 ssh-keygen -A
4242fi
4343
44+ # display SSH host public key(s)
45+ echo "SSH host public key(s):"
46+ cat /config/ssh_host_keys/ssh_host_*.pub
47+
4448# custom port
4549if [[ -n "${LISTEN_PORT}" ]]; then
4650 sed -i "s/^#Port [[:digit:]]\+/Port ${LISTEN_PORT}"/ /etc/ssh/sshd_config
You can’t perform that action at this time.
0 commit comments