From 6483529fd6d60f8ae3f996f9089faf289ef86b1d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 21 May 2022 08:32:32 +0200 Subject: setup-sshd: fix prompts Use 'ssh' in lowercase consistently Fix duplicate [prohibit-password] --- setup-sshd.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup-sshd.in') diff --git a/setup-sshd.in b/setup-sshd.in index fabea69..b6c2877 100644 --- a/setup-sshd.in +++ b/setup-sshd.in @@ -35,7 +35,7 @@ case "$1" in esac while ! isin "$sshdchoice" openssh dropbear none; do - ask "Which SSH server? ('openssh', 'dropbear' or 'none')" openssh + ask "Which ssh server? ('openssh', 'dropbear' or 'none')" openssh sshdchoice="$resp" done @@ -52,7 +52,7 @@ $MOCK apk add --quiet $pkgs if [ "$sshdchoice" = "openssh" ] && [ -z "$authorized_key" ]; then while true; do - ask "Allow root ssh login? ('yes', 'no', 'prohibit-password' or KEYURL) [prohibit-password]" prohibit-password + ask "Allow root ssh login? ('yes', 'no', 'prohibit-password' or KEYURL)" prohibit-password case "$resp" in yes|no|prohibit-password) sed -i -E -e "s/^#?\s*PermitRootLogin.*/PermitRootLogin $resp/" "$ROOT"/etc/ssh/sshd_config -- cgit v1.2.3