We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1fdd78 commit 36b3af9Copy full SHA for 36b3af9
docker/root/etc/s6/openssh/setup
@@ -26,6 +26,7 @@ fi
26
27
if [ -d /etc/ssh ]; then
28
SSH_PORT=${SSH_PORT:-"22"} \
29
+ SSH_LISTEN_PORT=${SSH_LISTEN_PORT:-"${SSH_PORT}"} \
30
envsubst < /etc/templates/sshd_config > /etc/ssh/sshd_config
31
32
chmod 0644 /etc/ssh/sshd_config
docker/root/etc/templates/sshd_config
@@ -1,4 +1,4 @@
1
-Port ${SSH_PORT}
+Port ${SSH_LISTEN_PORT}
2
Protocol 2
3
4
AddressFamily any
@@ -30,4 +30,4 @@ AllowUsers ${USER}
Banner none
Subsystem sftp /usr/lib/ssh/sftp-server
33
-AcceptEnv GIT_PROTOCOL
+AcceptEnv GIT_PROTOCOL
0 commit comments