diff --git a/setup-sshd.in b/setup-sshd.in index 44bcfc0cc04d9481f9da2ca5c7053d560a415600..e3eec548c97a0cc916e662894a03a539859b320f 100644 --- a/setup-sshd.in +++ b/setup-sshd.in @@ -159,7 +159,7 @@ fi if [ -n "$authorized_key" -a "$authorized_key" != "none" ]; then # if the argument is an HTTP(S)/FTP URL, try to fetch the file contents case "$authorized_key" in - http*://*|ftp://) + http*://*|ftp://*) key_url="$authorized_key" authorized_key="$(wget -qO- "$key_url")" || die "Failed to fetch key from '$key_url'" ;;