Skip to content

Commit bd5e118

Browse files
authored
core: 修复 ECDSA-P521 设置报错 (#480)
fixes #479
1 parent 78ba069 commit bd5e118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4004,7 +4004,7 @@ EOF
40044004

40054005
# https://manpages.debian.org/testing/openssh-server/authorized_keys.5.en.html#AUTHORIZED_KEYS_FILE_FORMAT
40064006
is_valid_ssh_key() {
4007-
grep -qE '^(ecdsa-sha2-nistp(256|384|512)|ssh-(ed25519|rsa)) ' <<<"$1"
4007+
grep -qE '^(ecdsa-sha2-nistp(256|384|521)|ssh-(ed25519|rsa)) ' <<<"$1"
40084008
}
40094009

40104010
[ -n "$2" ] || ssh_key_error_and_exit "Need value for $1"

0 commit comments

Comments
 (0)