Ensure the SSH port is being set based on the provided env variable 'PORT_SSH'
This commit is contained in:
@@ -9,7 +9,6 @@ chmod 744 /run/sshd
|
||||
|
||||
echo "**** Configure SSH service ****";
|
||||
|
||||
sed -i 's|^# Port 22.*$|Port 2222|' /etc/ssh/ssh_config
|
||||
#echo 'Port 2222' > /etc/ssh/ssh_config.d/port.conf
|
||||
sed -i "s|^# Port 22.*$|Port ${PORT_SSH}|" /etc/ssh/ssh_config
|
||||
|
||||
echo "DONE"
|
||||
|
||||
Reference in New Issue
Block a user