From 8e341a6c3bc47ce1b7c19841bf22902434dd2fa4 Mon Sep 17 00:00:00 2001
From: Sunil Mohan Adapa
Date: Thu, 7 Nov 2019 14:32:21 -0800
Subject: [PATCH] backups: Simplify SSH fingerprint verification command
There is no need to access the private key of an SSH host to get it's public key
fingerprint. Use public key file instead. No need for 'sudo' privileges because
of this any non-admin users can also do this verification.
Signed-off-by: Sunil Mohan Adapa
Reviewed-by: Joseph Nuthalapati
---
plinth/modules/backups/templates/verify_ssh_hostkey.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plinth/modules/backups/templates/verify_ssh_hostkey.html b/plinth/modules/backups/templates/verify_ssh_hostkey.html
index d5dd9ffc5..25ec83fcc 100644
--- a/plinth/modules/backups/templates/verify_ssh_hostkey.html
+++ b/plinth/modules/backups/templates/verify_ssh_hostkey.html
@@ -65,7 +65,7 @@
{% endblocktrans %}
- sudo ssh-keygen -lf /etc/ssh/ssh_host_rsa_key
+ ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub