"The system cannot find the file specified"使用 SecureCRT SFTP 将文件从 Linux 服务器下载到 Windows 时



我想从Linux服务器下载一个文件到本地Windows PC。我使用SecureCRT建立SSH连接,然后使用SFTPget命令下载,但失败了:

sftp> get /remote/path/file.svg  D:localpath
Downloading file.svg from /remote/path/file.svg
get: D:/local/path: The system cannot find the file specified.
100% 39KB     39KB/s 00:00:00
/remote/path/file.svg: 40319 bytes transferred in 0 seconds (39 KB/s)
sftp>

我发现可以将文件从Windows上传到Linux。但无法将任何文件从Linux下载到windows很困惑,我试了很多方法来解决这个问题。有人能帮我吗?

get的Secure CRT文档没有说明指定目标本地路径的可能性:
https://documentation.help/SecureCRT/SFTP_Tab_Command_Options.htm

您可能需要在之前lcd

lcd C:targetlocalpath
get /source/remote/path/file.txt

最新更新