SP-169 Use sftp command for sftp instead of scp
This commit is contained in:
1 parent
53672e1875
commit
6dd63156cc
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user