在 SSIS 中使用执行进程任务和 WinSCP 进行 SFTP 传输 [英] SFTP transfer using Execute Process Task and WinSCP in SSIS
本文介绍了在 SSIS 中使用执行进程任务和 WinSCP 进行 SFTP 传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 WinSCP 根文件夹 USERDATA 中放置了一个 User_file.txt
文件,我正在尝试将其下载到给定位置 C:\User\Local\
.
I am having a User_file.txt
file placed at WinSCP root folder USERDATA, which I am trying to download to the given location C:\User\Local\
.
Executable- C:\Program Files (x86)\WinSCP\WinSCP.exe
Arguments - /log=c:\path\to\log\winscp.log /command "open ftp://username:password@example.com/" "get /USERDATA/User_file.txt C:\User\Local\" "exit"
我面临以下错误:
无法建立连接,目标机器主动拒绝
No connection could be made the target machine actively refused it
不确定我错过了什么.我参考了 Stack Overflow 上的几篇相关帖子.
Not sure what I am missing. I took reference from couple of related post on Stack Overflow.
推荐答案
您想使用 SFTP,但在 会话 URL.
You want to use SFTP, but use FTP (ftp://
) protocol in the session URL.
使用 sftp://
代替:
... "open sftp://username:password@example.com/" ...
<小时>
WinSCP GUI 可以为您生成正确的脚本/命令行模板.
这篇关于在 SSIS 中使用执行进程任务和 WinSCP 进行 SFTP 传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文