From 89a8efa123c6c9c1c2cf62d2013a24b92729b3ef Mon Sep 17 00:00:00 2001 From: MrZhiin Date: Tue, 6 May 2025 11:03:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(reinstall.sh):=20=E4=BF=AE=E6=AD=A3SSH?= =?UTF-8?q?=E5=AF=86=E9=92=A5=E9=AA=8C=E8=AF=81=E6=AD=A3=E5=88=99=E8=A1=A8?= =?UTF-8?q?=E8=BE=BE=E5=BC=8F=E4=B8=AD=E7=9A=84ecdsa=E7=AE=97=E6=B3=95?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=20(#334)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reinstall.sh b/reinstall.sh index 7981218..6aa122f 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -3810,7 +3810,7 @@ EOF # https://manpages.debian.org/testing/openssh-server/authorized_keys.5.en.html#AUTHORIZED_KEYS_FILE_FORMAT is_valid_ssh_key() { - grep -qE '^(ecdsa-sha-nistp(256|384|512)|ssh-(ed25519|rsa)) ' <<<"$1" + grep -qE '^(ecdsa-sha2-nistp(256|384|512)|ssh-(ed25519|rsa)) ' <<<"$1" } [ -n "$2" ] || ssh_key_error_and_exit "Need value for $1"