This commit is contained in:
Isaac 2025-11-06 00:34:55 +04:00
parent feba38c28b
commit 481419ced0

View file

@ -26,7 +26,7 @@ def import_module_from_file(module_name, file_path):
def session_scp_upload(session, source_path, destination_path):
print('Using ssh private key path {}'.format(session.private_key_path))
scp_command = 'scp -v -i {privateKeyPath} -o LogLevel=VERBOSE -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null -pr {source_path} containerhost@"{ipAddress}":{destination_path}'.format(
scp_command = 'scp -v -i {privateKeyPath} -o LogLevel=VERBOSE -o BatchMode=yes -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null -pr {source_path} containerhost@"{ipAddress}":{destination_path}'.format(
privateKeyPath=session.private_key_path,
ipAddress=session.ip_address,
source_path=shlex.quote(source_path),