4 [ "$1" = "configure" ] || exit 0
6 . /usr/share/carnet-tools/functions.sh
8 if [ -f /etc/ssh/sshd_config ]; then
9 check_and_sed '^PermitRootLogin yes' \
10 's/PermitRootLogin yes/PermitRootLogin no/g' \
11 /etc/ssh/sshd_config || true
13 check_and_sed '^ReverseMappingCheck' \
14 's/^ReverseMappingCheck/#ReverseMappingCheck/g' \
15 /etc/ssh/sshd_config || true
19 if [ -x /usr/sbin/invoke-rc.d ]; then
20 [ -x /etc/init.d/ssh ] && invoke-rc.d ssh restart
22 [ -x /etc/init.d/ssh ] && /etc/init.d/ssh restart