From 640f26238ca47f9620fba7cd8ed5a512a248929b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 13 Nov 2019 16:55:28 +0100 Subject: [PATCH] luci-mod-system: sshkeys.js: do not incorrectly filter ecdsa keys on load Signed-off-by: Jo-Philipp Wich (cherry picked from commit a3ea891b7e6352f7f723276ef08c1fc40754bdc4) --- .../htdocs/luci-static/resources/view/system/sshkeys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js index 8b9673ae11..ce3bac9612 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js @@ -217,7 +217,7 @@ return L.view.extend({ load: function() { return fs.lines('/etc/dropbear/authorized_keys').then(function(lines) { return lines.filter(function(line) { - return line.match(/^ssh-/) != null; + return line.match(/^(ssh-rsa|ssh-dss|ssh-ed25519|ecdsa-sha2)\b/) != null; }); }); }, -- 2.30.2