mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Verify SSH hostkey before mounting
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
8 files changed
+146
-120
No files matched your search
+1
-1
@@ -294,7 +294,7 @@ def get_env(arguments, use_credentials=False):
|
||||
password = read_password()
|
||||
if password:
|
||||
env['SSHPASS'] = password
|
||||
env['BORG_RSH'] = 'sshpass -e ssh -o StrictHostKeyChecking=no'
|
||||
env['BORG_RSH'] = 'sshpass -e ssh -o StrictHostKeyChecking=yes'
|
||||
else:
|
||||
raise ValueError('could not find credentials')
|
||||
|
||||
|
||||
Reference in new issue
Block a user