mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
backups: Read file path of known_hosts directly from plinth.config
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
8 files changed
+10
-8
No files matched your search
@@ -149,7 +149,7 @@ def is_ssh_hostkey_verified(hostname):
|
||||
"""Check whether SSH Hostkey has already been verified.
|
||||
hostname: Domain name or IP address of the host
|
||||
"""
|
||||
known_hosts_path = os.path.join(cfg.data_dir, '.ssh', 'known_hosts')
|
||||
known_hosts_path = cfg.known_hosts
|
||||
if not os.path.exists(known_hosts_path):
|
||||
return False
|
||||
|
||||
|
||||
Reference in new issue
Block a user