使用WinSCP连接linux和windows都非常简单。

 

 

需要linux上开启sshd服务

WinSCP

 

 

 

 

连接windows上IIS的ftp站点:

 

WinSCP

 

 

 

 

 

winscp脚本

在winscp的安装目录下,有个WinSCP.com,运行它可进入winscp命令行界面。

WinSCP

 

 

建立连接

 

这种没有SSL证书的,直接可以连接。

open ftp://user:[email protected]:33 

 

这种是有SSL证书的站点,要加后面的参数,连接过程会有提示保存证书。

open ftps://user:[email protected]:33 -passive -explicitssl -explicittls 

 

lcd  d:\file_t      这种是定位到本地这个文件夹

mget  /xx/*.txt     将目录下的所有TXT下载到d:\file_t

 

close  断开会话

 

 

官方资料:https://winscp.net/eng/docs/commandline#operations

 

ftp常见命令

https://www.cnblogs.com/wajika/p/6484420.html

相关文章:

  • 2022-12-23
  • 2021-05-24
  • 2021-08-26
  • 2022-02-23
  • 2022-02-02
  • 2021-05-06
  • 2022-01-04
  • 2021-09-06
猜你喜欢
  • 2021-11-12
  • 2021-06-17
  • 2021-07-07
  • 2021-04-04
  • 2021-09-05
  • 2021-10-05
  • 2022-12-23
相关资源
相似解决方案