4 [ "$1" = "configure" ] || exit 0
7 . /usr/share/carnet-tools/functions.sh
10 if [ -f /etc/ssh/sshd_config ]; then
11 cp_check_and_sed '^PermitRootLogin yes' \
12 's/PermitRootLogin yes/PermitRootLogin no/g' \
13 /etc/ssh/sshd_config || true
15 cp_check_and_sed '^ReverseMappingCheck' \
16 's/^ReverseMappingCheck/#ReverseMappingCheck/g' \
17 /etc/ssh/sshd_config || true
21 if [ -x /usr/sbin/invoke-rc.d ]; then
22 [ -x /etc/init.d/ssh ] && invoke-rc.d ssh restart
24 [ -x /etc/init.d/ssh ] && /etc/init.d/ssh restart