我有一个User_file.txt
文件放置在 WinSCP 根文件夹 USERDATA 中,我正在尝试将其下载到给定位置C:\User\Local\
.
Executable- C:\Program Files (x86)\WinSCP\WinSCP.exe
Arguments - /log=c:\path\to\log\winscp.log /command "open ftp://username:[email protected] /cdn-cgi/l/email-protection/" "get /USERDATA/User_file.txt C:\User\Local\" "exit"
我面临以下错误:
无法建立连接目标机器主动拒绝
不知道我错过了什么。我参考了 Stack Overflow 上的几篇相关帖子。
您想要使用 SFTP,但使用 FTP (ftp://
)中的协议会话网址 https://winscp.net/eng/docs/session_url.
Use sftp://
反而:
... "open sftp://username:[email protected] /cdn-cgi/l/email-protection/" ...
WinSCP GUI 可以为您生成正确的脚本/命令行模板 https://winscp.net/eng/docs/ui_generateurl#script.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)