#!/bin/sh set -e [ "$1" = "configure" ] || exit 0 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx # Load CARNet Tools . /usr/share/carnet-tools/functions.sh if [ -f /etc/ssh/sshd_config ]; then cp_check_and_sed '^PermitRootLogin yes' \ 's/PermitRootLogin yes/PermitRootLogin no/g' \ /etc/ssh/sshd_config || true cp_check_and_sed '^ReverseMappingCheck' \ 's/^ReverseMappingCheck/#ReverseMappingCheck/g' \ /etc/ssh/sshd_config || true fi # restart invoke-rc.d ssh restart #if [ -x /usr/sbin/invoke-rc.d ]; then # [ -x /etc/init.d/ssh ] && invoke-rc.d ssh restart #else # [ -x /etc/init.d/ssh ] && /etc/init.d/ssh restart #fi #DEBHELPER#