|
|
|
@ -26,8 +26,9 @@ case "${1}" in
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
for OPTION in PasswordAuthentication ChallengeResponseAuthentication; do
|
|
|
|
|
sed -i "s/#* *${OPTION} *${FROM}/${OPTION} ${TO}/g; w /dev/stdout" /etc/ssh/sshd_config
|
|
|
|
|
for OPTION in PasswordAuthentication KbdInteractiveAuthentication ChallengeResponseAuthentication; do
|
|
|
|
|
sed -i "s/#* *${OPTION} *${FROM}/${OPTION} ${TO}/g" /etc/ssh/sshd_config
|
|
|
|
|
grep "^#* *${OPTION} *\(yes\|no\)" /etc/ssh/sshd_config
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if command -v systemctl > /dev/null; then
|
|
|
|
|