Free FTP Clients 客户端:WinSCP 的 3 种版本 (**)

安装版

便携版

WinSCP Scripting 自动化

-------------------------------------------------------------------

字符编码问题

在跨平台进行文件共享时,涉及到字符的编码问题。

采用 ftp一般都可以解决乱码问题;而共享网络文件夹一般不能。

ftp的一个问题是,当连接中断时,会造成文件的残缺。

有些 ftp软件,默认下载的文件名和原名相同,这就难以识别出来了。如 FileZilla

有些 ftp软件,默认下载的文件名和原名不相同,容易识别出来。如 WinScp

filename-subfix.filepart  #.filepart是 winscp加的;拷贝完成恢复原名。

-------------------------------------------------------------------

注意事项

压缩打包问题;

  • 以服务器为参考标准,即默认在 服务器上的编码,是标准的。当然,也可以反之。
  • 将服务器端的文件,压缩之后,再下载,OK。
  • 如果字符编码不同,那么,不要将本地的文件夹打包,然后,上传,NG。
    如:在 win中,这时的文件名是 GB编码,打包后还是 GB编码;
    上传到 linux需要 utf8编码,于是,压缩文件名错误编码,压缩包内部的文件名也是错误编码。
  • 一般 ftp软件,在传输中,都会对编码进行自带转换,或勾选强制转换。

-------------------------------------------------------------------

优点:

2023 总结:未来是会变化的。

  • 可在服务器上运行一些远程命令,或者本地命令。
    Filezilla:没有这个功能。其服务器菜单有自定义命令,但显示灰色,也许需要安装了服务器才有效吧?或许是Filezilla侧重于更大规模的应用,将文件校验之类的小事情交给维护人员了吧?
     
  • 文件的双向 hash值比较。不适合文件夹。
    BitVise 服务器端的 hash值,只适合于自家的服务器?
    Filezilla:只能比较当前夹的文件大小,和日期。
     
  • 可将 服务器端的文件夹打包压缩,然后下载。
    Filezilla:没有看到,也许需要自定义之后,才有吧?
     
  • 下载未完成之前,目标文件与源文件不同名。
    Filezilla:文件同名。问题:连接中断之后,会留下大小不同的、损坏的同名文件。

下载

  All Downloads :: WinSCP

Portable Use

  Portable Use :: WinSCP

与 Fillzilla的区别:

  • Fillzilla使用的是 21端口,真正的 ftp协议。客户端免费,服务器端需要购买,免费也能使用?

  • WinScp 和 BitVise类似(以下内容,纯属猜想,未必真实)

      使用 ssh来实现 ftp,所以同时也可以执行服务器端的命令。

      WinScp将 ftp和 ssh整合在一起,不容易区分。

      BitVise将 ftp和 ssh采用 2个不同的按钮来启动,容易区分。

什么是默认SFTP端口以及如何更改SFTP端口号?

SFTP 是基于 SSH 协议的,所以默认的身份认证方法与 SSH 协议保持一致。通常我们使用 SSH Key 来进行连接,如果你已经可以使用 SSH 连接到远程服务器上,那么可以使用以下命令来连接 SFTP:

SFTP默认端口TCP 22(SFTP Default Port TCP 22)

SFTP is a subsystem of the SSH service or daemon. So this makes SFTP listen TCP 22 port. We can use the following sftp command to connect remote system SFTP service.

SFTP是SSH服务或守护程序的子系统。 因此,这使SFTP侦听TCP 22端口。 我们可以使用以下sftp命令来连接远程系统SFTP服务。

更改默认的SFTP端口 (Change Default SFTP Port)

If we want to change the default SFTP port we need to change SSH configuration which will also change the default SSH port. We need to open the SSH config file /etc/ssh/sshd_config and change

如果要更改默认的SFTP端口,则需要更改SSH配置,这也将更改默认的SSH端口。 我们需要打开SSH配置文件/etc/ssh/sshd_config并进行更改

#Port 22

To whatever we want. In this example, we change to the 2222 . This configuration will be more secure because it is harder to find by attackers.

无论我们想要什么。 在此示例中,我们更改为2222 。 此配置将更加安全,因为攻击者很难找到它。

======================================

WinSCP 的 3 种版本

摘录自:https://www.webfx.com/blog/web-design/best-free-ftp-clients/

2. WinSCP


Best for: Windows users and IT professionals can rely on WinSCP for secure file transfer and synchronization. Whether you’re a system administrator or an advanced user, WinSCP provides a graphical user interface (GUI) that simplifies the management of remote files. It supports both SCP and SFTP protocols and integrates seamlessly with PuTTY for secure SSH connections.

To download WinSCP and explore its features, visit WinSCP.

  • Graphical user interface (GUI) for easy file management
  • Integration with PuTTY for secure SSH connections
  • Supports SCP and SFTP protocols

   WinSCP :: Official Site :: Free SFTP and FTP client for Windows

7. WinSCP Portable

Best for: WinSCP Portable is designed for users who require portable file transfers on Windows systems. This version of WinSCP does not require installation and can be run directly from a USB drive or other portable storage devices. It supports both SCP and SFTP protocols and securely stores FTP session details. To download WinSCP Portable, visit WinSCP Portable.

    Portable version of WinSCP, no installation required
    Supports SCP and SFTP protocols
    Securely stores FTP session details

  All Downloads :: WinSCP

10. WinSCP Scripting

Best for: WinSCP Scripting is an ideal solution for users who need to automate file transfers and backups. It provides a command-line interface that allows for scripted or batch file transfers. WinSCP Scripting supports scripting using PowerShell, batch files, or various scripting languages.

To learn more about WinSCP Scripting and its capabilities, visit WinSCP Scripting.

    Command-line interface for automated tasks
    Supports scripting using PowerShell, batch files, or scripting languages
    Logging and error handling for reliable automation

  Automate file transfers (or synchronization) to FTP server or SFTP server :: WinSCP

校验

只能校验本地和服务器端的文件。

校验结果输出:

校验结果,可以输出,也可以不输出:好像需要在一个窗口里“打勾”?忘记在哪里了?

C:\test\创建目录\archive.zip
5F-C0-52-02-1C-5A-4D-57-68-4E-19-6C-04-F3-34-90-42-1E-4F-70
/home/colating/Documents/archive.zip
5F-C0-52-02-1C-5A-4D-57-68-4E-19-6C-04-F3-34-90-42-1E-4F-70
Match
Press any key to exit...

文件夹不能校验

/home/abc/Documents/新建
Error: 使用“2”个参数调用“CalculateFileChecksum”时发生异常:“'/home/abc/Documents/新建'不是文件!”
Press any key to exit...

执行命令

这个入口,可执行 服务器端,或本地的命令。

这个入口,执行的是本地命令。

自定义命令

# 软件自带的命令

Tar/GZip(&R)...
tar -cz  -f "!?压缩文件名(&A):?archive.tgz!" !&

UnTar/GZip(&U)...
tar -xz --directory="!?解压到目录(&E):?.!" -f "!"

 需要勾选:应用到目录

------------------------------

# 修改为 zip

Zip/Zip(&R)...
zip -r "!?压缩文件名(&A):?archive.zip!" !&


UnZip/UnZip(&U)...
unzip --d "!?解压到目录(&E):?.!" -f "!"

不要勾选:应用到目录

参考:

Linux zip命令:压缩文件或目录

  Linux zip命令:压缩文件或目录_linux压缩文件夹命令 zip_红目香薰的博客-CSDN博客

zip 格式是开放且免费的,所以广泛使用在 Windows、Linux、MacOS 平台。

如果没有的话需要安装,使用:

    yum install zip -y

    yum install unzip -y

    sudo apt install zip -y

    sudo apt install unzip -y  # 好像这个已经包含在上句的安装了?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值