|
|
@ -35,9 +35,13 @@ for OPTION in PasswordAuthentication KbdInteractiveAuthentication ChallengeRespo
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
if command -v systemctl > /dev/null; then
|
|
|
|
if command -v systemctl > /dev/null; then
|
|
|
|
|
|
|
|
printf 'Restarting SSH daemon via systemd...'
|
|
|
|
systemctl restart sshd
|
|
|
|
systemctl restart sshd
|
|
|
|
|
|
|
|
echo 'done.'
|
|
|
|
elif [ -x /etc/init.d/sshd ]; then
|
|
|
|
elif [ -x /etc/init.d/sshd ]; then
|
|
|
|
|
|
|
|
printf 'Restarting SSH daemon via SysV-compatible init...'
|
|
|
|
/etc/init.d/sshd restart
|
|
|
|
/etc/init.d/sshd restart
|
|
|
|
|
|
|
|
echo 'done.'
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Restart SSH server to have changes take effect."
|
|
|
|
echo "Restart SSH server to have changes take effect."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|