From 6dd63156cc455f114334775fccf7bb36634e189f Mon Sep 17 00:00:00 2001 From: Eric Harding Date: Thu, 1 Aug 2019 16:21:11 -0400 Subject: [PATCH] SP-169 Use sftp command for sftp instead of scp --- src/lib/utils/sftp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/sftp.cpp b/src/lib/utils/sftp.cpp index b98c4d738..6060e5b53 100644 --- a/src/lib/utils/sftp.cpp +++ b/src/lib/utils/sftp.cpp @@ -30,7 +30,7 @@ void begin_sftp_download( std::array 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);