SP-169 Use sftp command for sftp instead of scp

This commit is contained in:
Eric Harding committed 2019-08-02 13:59:19 -04:00
1 parent 53672e1875
commit 6dd63156cc
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ void begin_sftp_download(
std::array<char,128> buffer;
std::string cmd = fmt::format("sshpass -p {} scp -o ConnectTimeout={} {}:{} {}", password, timeout, url, file_name, temp);
std::string cmd = fmt::format("sshpass -p {} sftp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout={} {}:{} {}", password, timeout, url, file_name, temp);
FILE* pipe = popen(cmd.c_str(), "r");
LOG(Gen,Diag,"Downloading remote file using command: '{}'", cmd);