From da8c7e51c53cb6743d99ff97a2716f86e42a007a Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sat, 19 Jun 2021 15:31:04 +0200 Subject: [PATCH] setup: Make the check more resilient ed25519 keys start with the ssh-ed25519 prefix. Okay, this mechanism sucks. I should just figure out how to parse the keys. Related to #516 --- lib/setup/key_editors.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setup/key_editors.dart b/lib/setup/key_editors.dart index 1479d06c..a8c5273d 100644 --- a/lib/setup/key_editors.dart +++ b/lib/setup/key_editors.dart @@ -24,7 +24,7 @@ class PublicKeyEditor extends StatelessWidget { } val = val.trim(); - if (!val.startsWith("ssh-rsa ") && !val.startsWith("ecdsa-sha2")) { + if (!val.startsWith("ssh-") && !val.startsWith("ecdsa-")) { return tr("setup.keyEditors.public"); } return null;