diff --git a/ci-scripts/sshconnection.py b/ci-scripts/sshconnection.py index 035da71426..0946ce0f34 100644 --- a/ci-scripts/sshconnection.py +++ b/ci-scripts/sshconnection.py @@ -193,9 +193,9 @@ class SSHConnection(): def copyin(self, ipaddress, username, password, source, destination): count = 0 copy_status = False - logging.debug('scp '+ username + '@' + ipaddress + ':' + source + ' ' + destination) + logging.debug('scp -r '+ username + '@' + ipaddress + ':' + source + ' ' + destination) while count < 10: - scp_spawn = pexpect.spawn('scp '+ username + '@' + ipaddress + ':' + source + ' ' + destination, timeout = 100) + scp_spawn = pexpect.spawn('scp -r '+ username + '@' + ipaddress + ':' + source + ' ' + destination, timeout = 100) scp_response = scp_spawn.expect(['Are you sure you want to continue connecting (yes/no)?', 'password:', pexpect.EOF, pexpect.TIMEOUT]) if scp_response == 0: scp_spawn.sendline('yes') @@ -232,9 +232,9 @@ class SSHConnection(): def copyout(self, ipaddress, username, password, source, destination): count = 0 copy_status = False - logging.debug('scp ' + source + ' ' + username + '@' + ipaddress + ':' + destination) + logging.debug('scp -r ' + source + ' ' + username + '@' + ipaddress + ':' + destination) while count < 4: - scp_spawn = pexpect.spawn('scp ' + source + ' ' + username + '@' + ipaddress + ':' + destination, timeout = 100) + scp_spawn = pexpect.spawn('scp -r ' + source + ' ' + username + '@' + ipaddress + ':' + destination, timeout = 100) scp_response = scp_spawn.expect(['Are you sure you want to continue connecting (yes/no)?', 'password:', pexpect.EOF, pexpect.TIMEOUT]) if scp_response == 0: scp_spawn.sendline('yes')