Use accept-new for host keys. By @delfino-nunez (#1238)

This commit is contained in:
Delfino Nunez 2022-03-28 00:59:44 -07:00 committed by GitHub
parent 9cadcc0e97
commit 5b8f3a2915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class BorgInfoRepoJob(BorgJob):
ret['additional_env'] = { ret['additional_env'] = {
'BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK': "yes", 'BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK': "yes",
'BORG_RSH': 'ssh -oStrictHostKeyChecking=no' 'BORG_RSH': 'ssh -oStrictHostKeyChecking=accept-new'
} }
ret['password'] = params['password'] # Empty password is '', which disables prompt ret['password'] = params['password'] # Empty password is '', which disables prompt

View File

@ -28,7 +28,7 @@ class BorgInitJob(BorgJob):
cmd.append(params['repo_url']) cmd.append(params['repo_url'])
ret['additional_env'] = { ret['additional_env'] = {
'BORG_RSH': 'ssh -oStrictHostKeyChecking=no' 'BORG_RSH': 'ssh -oStrictHostKeyChecking=accept-new'
} }
ret['encryption'] = params['encryption'] ret['encryption'] = params['encryption']