# WinSCP

**WinSCP**（Windows Secure CoPy）是一款免费、开源的 SFTP、FTP、SCP、WebDAV 和 S3 客户端及文件管理器，适用于 [Microsoft Windows](https://www.edgepedia.org/zh/microsoft-windows)，其主要功能是在本地计算机与远程计算机之间传输文件。<sup>[1](https://winscp.net/eng/docs/introduction)</sup> 除传输之外，它还提供脚本编写、命令行界面、用于编程的 .NET 程序集、目录同步以及基本的文件管理器功能。<sup>[1](https://winscp.net/eng/docs/introduction)</sup> 它以 C++ 编写，主要由 Martin Prikryl 一人开发。<sup>[2](https://sourceforge.net/projects/winscp/)</sup><sup> • </sup><sup>[3](https://winscp.net/eng/docs/project_history)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 面向 Windows 的开源 SFTP、FTP、SCP、WebDAV 和 S3 客户端及文件管理器<sup>[1](https://winscp.net/eng/docs/introduction)</sup> |
| 协议 | 五种：SFTP、FTP、SCP、WebDAV 和 Amazon S3；默认操作使用 SFTP，并回退到 SCP<sup>[4](https://winscp.net/eng/docs/protocols)</sup> |
| 起源 | 约 2000 年 3 月由 Martin Prikryl 在布拉格经济大学 IT 部门启动<sup>[3](https://winscp.net/eng/docs/project_history)</sup> |
| 许可证 | GNU 通用公共许可证第 3 版或更高版本（.NET 程序集使用 MPL）；SourceForge 列为 GPLv2<sup>[5](https://winscp.net/eng/docs/license)</sup><sup> • </sup><sup>[2](https://sourceforge.net/projects/winscp/)</sup> |
| 最新稳定版本 | 6.5.7<sup>[1](https://winscp.net/eng/docs/introduction)</sup> |
| 平台 | Windows 7/2008 及更新版本，直至 Windows 11 和 Windows Server 2025；也可在 Wine 下运行；需要 40–100 MB 磁盘空间<sup>[6](https://winscp.net/eng/docs/requirements)</sup> |
| 自动化 | 批处理文件脚本、命令行界面和 .NET 程序集<sup>[1](https://winscp.net/eng/docs/introduction)</sup> |

## 历史

Martin Prikryl 于约 2000 年 3 月在布拉格经济大学 IT 部门工作期间启动了这个项目。“WinSCP”（Windows Secure CoPy）这个名字最初只是临时标签，打算等找到更好的名字再换，但后来一直没换。<sup>[3](https://winscp.net/eng/docs/project_history)</sup> 最初的想法来自 Jan Havlicek，他想要这个工具，并连续数周催促 Prikryl，直到他将其实现。<sup>[3](https://winscp.net/eng/docs/project_history)</sup> 根据项目自己的历史页面，WinSCP 很可能是史上第一个用于 SSH 的图形用户界面文件传输客户端，至少是在 Microsoft Windows 平台上如此。<sup>[3](https://winscp.net/eng/docs/project_history)</sup> 除了各种外部贡献之外，该项目基本上仍是一个人的努力。<sup>[3](https://winscp.net/eng/docs/project_history)</sup>

该项目于 2003 年 7 月 13 日在 [SourceForge](https://www.edgepedia.org/zh/sourceforge) 注册，并以 martinprikryl 账号在该平台分发；网站报告每周约 667,000 次下载，累计下载量超过 2.73 亿次。<sup>[2](https://sourceforge.net/projects/winscp/)</sup>

## 支持的协议

WinSCP 支持五种传输协议：SFTP（SSH 文件传输协议）、FTP、SCP（安全复制协议）、WebDAV 和 [Amazon S3](https://www.edgepedia.org/zh/amazon-s3)。<sup>[4](https://winscp.net/eng/docs/protocols)</sup> 默认操作模式是使用 SFTP 并回退到 SCP；首选协议在登录对话框中选定。<sup>[4](https://winscp.net/eng/docs/protocols)</sup>

按照 WinSCP 的实现，这些协议在实际特性上有所不同：<sup>[4](https://winscp.net/eng/docs/protocols)</sup>

- **SFTP** 是安全的（基于 SSH），支持传输续传（仅自引入重命名命令的 SFTP 第 2 版起）和向文件追加内容，但通常最慢，因为需要加密并等待数据包确认。
- **FTP** 可选安全（基于 TLS/SSL），通常是文件传输最快的，但传输建立较慢，因此移动大量小文件可能很慢。WinSCP 不支持通过 FTP 向文件追加内容。
- **WebDAV** 基于 HTTP，在 WinSCP 的实现中支持基于 TLS/SSL 的安全变体，速度中等；它不支持传输续传或中断传输。<sup>[17](https://winscp.net/eng/docs/webdav)</sup>
- **SCP** 在 WinSCP 中不支持传输续传，且不终止会话就无法取消传输。

在服务器端，大多数 SSH 服务器支持 SFTP，而 SCP 是一种遗留协议，主要由 OpenSSH 及一些其他服务器支持。对于 FTP，既支持未加密变体，也支持 FTPS；不支持压缩传输（Zlib）。<sup>[6](https://winscp.net/eng/docs/requirements)</sup>

## 安全模型

WinSCP 的 SSH 连接依赖主机密钥验证来防止中间人攻击，即连接被秘密重定向到另一台计算机，从而将密码发送到错误的机器。<sup>[7](https://winscp.net/eng/docs/ssh_verifying_the_host_key)</sup> 每个 SSH 服务器都有一个唯一的识别码，称为主机密钥。WinSCP 在其配置存储中记录每个服务器的主机密钥，并在每次连接时进行比较；如果密钥与之前收到的不一致，用户会收到警告，并有机会在输入任何私人信息之前放弃连接。<sup>[7](https://winscp.net/eng/docs/ssh_verifying_the_host_key)</sup> 首次连接时，WinSCP 无法判断密钥是否正确，因此会询问用户是否信任它；在互联网这样的敌对网络中，文档建议与系统管理员核对指纹。<sup>[7](https://winscp.net/eng/docs/ssh_verifying_the_host_key)</sup>

指纹可以从服务器管理员处、任何能物理访问服务器的人处获取，或在服务器本身上用 `ssh-keygen` 显示；OpenSSH 6.8 及更新版本默认显示 SHA-256 指纹，旧版本显示 MD5。<sup>[8](https://winscp.net/eng/docs/faq_hostkey)</sup> 对于脚本和代码，预期指纹通过 `open` 命令的 `-hostkey` 开关或 .NET 程序集的 `SessionOptions.SshHostKeyFingerprint` 属性指定。<sup>[8](https://winscp.net/eng/docs/faq_hostkey)</sup>

在身份验证方面，WinSCP 支持密码、键盘交互、公钥和 Kerberos（GSS）方法，并与 Pageant（PuTTY 的 SSH 身份验证代理）集成，后者在内存中保存已解码的私钥，因此无需重新输入口令短语。<sup>[1](https://winscp.net/eng/docs/introduction)</sup><sup> • </sup><sup>[9](https://winscp.net/eng/docs/ui_pageant)</sup> SSH 身份验证方法的顺序是 GSSAPI、通过 Pageant 的公钥、通过所配置的密钥文件的公钥、键盘交互，最后是密码。<sup>[7](https://winscp.net/eng/docs/ssh_verifying_the_host_key)</sup> 在加密方面，如果服务器支持，默认使用 AES；Blowfish 可作为开销更低的替代方案。<sup>[10](https://winscp.net/eng/docs/ssh)</sup>

## 自动化与同步

WinSCP 可以在不使用图形界面的情况下被驱动。控制台或脚本模式通过 `winscp.com` 或 `winscp.exe` 的 `/console` 参数进入；命令可以来自脚本文件（`/script`）、命令行（`/command`）或标准输入。<sup>[11](https://winscp.net/eng/docs/scripting)</sup> 脚本命令包括 `put`、`get`、`ls`、`mkdir`、`mv`、`rm` 和 `synchronize`，当任何命令失败或提示被回答为“中止”时，可执行文件返回退出代码 1。<sup>[11](https://winscp.net/eng/docs/scripting)</sup> 对于复杂任务，推荐使用 .NET 程序集接口；其 `TransferOptions` 类控制传输模式、速度限制、覆盖行为和保留时间戳等设置。<sup>[12](https://winscp.net/eng/docs/library_transferoptions)</sup>

`synchronize` 命令将本地目录与远程目录同步，或反向同步，或双向同步，模式有 `local`、`remote` 和 `both`，并有用于镜像、删除过时文件以及按时间、大小或校验和比较的开关。<sup>[13](https://winscp.net/eng/docs/scriptcommand_synchronize)</sup> 在图形界面中，WinSCP 提供几种同步方式：借助“同步浏览”和“比较目录”的手动传输、“同步”功能、“保持远程目录最新”（监视本地更改并在服务器上反映它们），以及仅更新时间戳而不重新传输文件的时间戳模式。<sup>[14](https://winscp.net/eng/docs/task_synchronize)</sup>

## 安装与便携性

WinSCP 提供安装包、独立便携可执行文件、[Microsoft Store](https://www.edgepedia.org/zh/microsoft-store) 版本，以及面向企业管理员提供的 MSI 包。<sup>[15](https://winscp.net/eng/docs/installation)</sup> 安装程序提供两种界面选择：一种是 Commander 界面，采用 [Norton Commander](https://www.edgepedia.org/zh/norton-commander) 风格的本地和远程目录面板；另一种是类似资源管理器的界面，只有单个远程面板。<sup>[2](https://sourceforge.net/projects/winscp/)</sup> 便携可执行文件会在自身旁边查找 INI 文件，并可将配置放在可移动介质上；通过额外设置，它可以完全便携，因为默认情况下它仍会将随机种子文件和临时文件写入主机。<sup>[16](https://winscp.net/eng/docs/portable)</sup>

## 分发与许可

WinSCP 是遵循 GNU 通用公共许可证第 3 版或更高版本的自由软件，允许使用、再分发和修改，修改后的版本必须继续遵循 GPL。<sup>[5](https://winscp.net/eng/docs/license)</sup> 安装包和图标集有单独的许可证，.NET 程序集按 MPL 授权，WinSCP 商标和徽标归 Martin Prikryl 所有，使用需书面同意。<sup>[5](https://winscp.net/eng/docs/license)</sup> SourceForge 的项目元数据将许可证列为 GPLv2，这与项目自己的许可证页面不一致。<sup>[2](https://sourceforge.net/projects/winscp/)</sup>

## References

1. [Introducing WinSCP, WinSCP documentation](https://winscp.net/eng/docs/introduction)
2. [WinSCP project page, SourceForge.net](https://sourceforge.net/projects/winscp/)
3. [Project History, WinSCP documentation](https://winscp.net/eng/docs/project_history)
4. [Supported File Transfer Protocols, WinSCP documentation](https://winscp.net/eng/docs/protocols)
5. [License, WinSCP documentation](https://winscp.net/eng/docs/license)
6. [WinSCP Technical Requirements, WinSCP documentation](https://winscp.net/eng/docs/requirements)
7. [Verifying the Host Key, WinSCP documentation](https://winscp.net/eng/docs/ssh_verifying_the_host_key)
8. [Where do I get SSH host key fingerprint to authorize the server?, WinSCP FAQ](https://winscp.net/eng/docs/faq_hostkey)
9. [Using Pageant for Authentication, WinSCP documentation](https://winscp.net/eng/docs/ui_pageant)
10. [Understanding SSH, WinSCP documentation](https://winscp.net/eng/docs/ssh)
11. [Scripting and Task Automation, WinSCP documentation](https://winscp.net/eng/docs/scripting)
12. [TransferOptions Class, WinSCP documentation](https://winscp.net/eng/docs/library_transferoptions)
13. [synchronize command, WinSCP documentation](https://winscp.net/eng/docs/scriptcommand_synchronize)
14. [Synchronizing, WinSCP documentation](https://winscp.net/eng/docs/task_synchronize)
15. [Installation, WinSCP documentation](https://winscp.net/eng/docs/installation)
16. [Portable Use, WinSCP documentation](https://winscp.net/eng/docs/portable)
17. [WebDAV :: WinSCP](https://winscp.net/eng/docs/webdav)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Operating systems

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/winscp

English original: https://www.edgepedia.org/winscp
