From 1b23cb4da92253f4a808f1541f42ea33153241e0 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sat, 19 Jun 2021 15:23:00 +0200 Subject: [PATCH] Setup: Allow ecdsa keys to be entered Fixes #516 --- changelog.yml | 1 + lib/setup/key_editors.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.yml b/changelog.yml index fa8eccf3..910522a9 100644 --- a/changelog.yml +++ b/changelog.yml @@ -6,6 +6,7 @@ - "More robust error handling" bugs: - text: "Fix ShareTo being broken in the last release" + - text: "Support for non-rsa ssh keys - #516" - version: "1.76" date: 2021-04-23 diff --git a/lib/setup/key_editors.dart b/lib/setup/key_editors.dart index cfdb91b3..1479d06c 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 ")) { + if (!val.startsWith("ssh-rsa ") && !val.startsWith("ecdsa-sha2")) { return tr("setup.keyEditors.public"); } return null;