summaryrefslogtreecommitdiff
path: root/setup-sshd.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-21 08:32:32 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-05-21 08:32:32 +0200
commit6483529fd6d60f8ae3f996f9089faf289ef86b1d (patch)
tree602ade86d860a85fe1b0fbbae435629eaa4a113b /setup-sshd.in
parent7695fa275dafebf70af448bda0b01c5951f3a3e1 (diff)
downloadalpine-conf-6483529fd6d60f8ae3f996f9089faf289ef86b1d.zip
setup-sshd: fix prompts
Use 'ssh' in lowercase consistently Fix duplicate [prohibit-password]
Diffstat (limited to 'setup-sshd.in')
-rw-r--r--setup-sshd.in4
1 files changed, 2 insertions, 2 deletions
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