/etc/ssh/ssh_config does not always import from /etc/ssh/ssh_config.d on all distributions
This commit is contained in:
@@ -8,6 +8,8 @@ mkdir -p /run/sshd
|
|||||||
chmod 744 /run/sshd
|
chmod 744 /run/sshd
|
||||||
|
|
||||||
echo "**** Configure SSH service ****";
|
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"
|
echo "DONE"
|
||||||
|
|||||||
Reference in New Issue
Block a user