This commit is contained in:
Bob Mottram 2016-10-30 10:11:03 +00:00
parent 6096ac3bf8
commit b068fa94d5
1 changed files with 5 additions and 10 deletions

View File

@ -205,16 +205,9 @@ function change_xmpp_settings {
}
function allow_ssh_passwords {
if [[ $SSH_PASSWORDS == "yes" ]]; then
dialog --title $"SSH Passwords" \
--backtitle $"Freedombone Security Configuration" \
--yesno $"\nAllow SSH login using passwords?" 7 60
else
dialog --title $"SSH Passwords" \
--backtitle $"Freedombone Security Configuration" \
--defaultno \
--yesno $"\nAllow SSH login using passwords?" 7 60
fi
dialog --title $"SSH Passwords" \
--backtitle $"Freedombone Security Configuration" \
--yesno $"\nAllow SSH login using passwords?" 7 60
sel=$?
case $sel in
0) SSH_PASSWORDS="yes";;
@ -738,6 +731,8 @@ function menu_security_settings {
;;
8)
allow_ssh_passwords
change_ssh_settings
exit 0
;;
9)
exit 0