5 [ "$1" = "configure" ] || exit 0
6 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
10 . /usr/share/carnet-tools/functions.sh
13 if [ -f /etc/ssh/sshd_config ]; then
14 cp_check_and_sed '^PermitRootLogin yes' \
15 's/PermitRootLogin yes/PermitRootLogin no/g' \
16 /etc/ssh/sshd_config || true
18 cp_check_and_sed '^ReverseMappingCheck' \
19 's/^ReverseMappingCheck/#ReverseMappingCheck/g' \
20 /etc/ssh/sshd_config || true
24 invoke-rc.d ssh restart
26 #if [ -x /usr/sbin/invoke-rc.d ]; then
27 # [ -x /etc/init.d/ssh ] && invoke-rc.d ssh restart
29 # [ -x /etc/init.d/ssh ] && /etc/init.d/ssh restart