/etc/ssh/ssh_config does not always import from /etc/ssh/ssh_config.d on all distributions

This commit is contained in:
Josh.5
2022-01-26 15:44:48 +13:00
parent 3aa0d04d91
commit 68b5d3df3c

View File

@@ -8,6 +8,8 @@ mkdir -p /run/sshd
chmod 744 /run/sshd
echo "**** Configure SSH service ****";
echo 'Port 2222' > /etc/ssh/ssh_config.d/port.conf
sed -i 's|^# Port 22.*$|Port 2222|' /etc/ssh/ssh_config
#echo 'Port 2222' > /etc/ssh/ssh_config.d/port.conf
echo "DONE"