From 75d8e3832197e1a86afceb9b8b001add5d8e52df Mon Sep 17 00:00:00 2001 From: levasseur Date: Mon, 21 Feb 2022 16:35:34 +0100 Subject: [PATCH] conf_ssh.sh: allow using network range using eg. /16 --- modules/conf_ssh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/conf_ssh.sh b/modules/conf_ssh.sh index 9d1a40b..d354abc 100644 --- a/modules/conf_ssh.sh +++ b/modules/conf_ssh.sh @@ -11,7 +11,7 @@ # none # ------------------------------------------------------------------------------ -export VER_conf_ssh="0.1.2" +export VER_conf_ssh="0.1.3" export DEP_conf_ssh="upgrade_dist" conf_ssh() @@ -28,7 +28,7 @@ conf_ssh() install_file ssh/$(basename $f) $f tag_file $f done - sed -i -e "s/@SSHD_PERMITROOT_RANGE@/$SSHD_PERMITROOT_RANGE/" /etc/ssh/sshd_config + sed -i -e "s#@SSHD_PERMITROOT_RANGE@#$SSHD_PERMITROOT_RANGE#" /etc/ssh/sshd_config prnt I "Démarrage du sevice ssh..." svc_start ssh