linux ftp tls 客户端,在Windows中使用WinSCP或其他命令行FTP客户端的隐式TLS FTP连接...

这篇博客介绍了如何创建并使用WinSCP脚本来自动执行FTP连接、下载文件、删除远程文件的任务。通过在批处理文件中调用WinSCP.exe,并提供包含连接信息和操作指令的文本文件,可以实现无人值守的文件同步。
摘要由CSDN通过智能技术生成

感谢马丁Prikryl更正,我能够连接,这是我所做的:

使用winscp.com命令“connection.txt”创建一个文本文件:

# Automatically abort script on errors option batch abort # Disable overwrite confirmations that conflict with the previous option confirm off # Connect with username and password open ftp://username:password@host:port -implicit -certificate="aa:aa:aa:aa...." # Change local directory lcd C:\local_working_folder # Force binary mode transfer option transfer binary # Download missing files to local directory from remote synchronize local # Delete all remote files rm * # Disconnect close # Exit WinSCP exit

现在从命令提示符或批处理文件中,您可以从安装位置调用winscp.exe。 如果来自安装媒体,则应从C:\ Program Files \ WinSCP \ WinSCP.exe中提取,如果从.zip便携式版本提取到您提取文件的文件夹:

C:\WinSCP\WinSCP.exe /console /script="connection.txt" /log="conn.log"

然后只需安排批次就可以自动执行此过程。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值