Verify SSH hostkey before mounting

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Joseph Nuthalapati committed 2019-07-03 12:42:41 +05:30
1 parent 7684814a5c
commit 3a6dcbe7a7
8 files changed
+146 -120

No files matched your search

+1 -1
View File
@@ -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')