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