如何向 .NET 应用程序添加安全 FTP 功能
我正在将内部客户端-服务器应用程序重写为 .NET MVC 应用程序。 它需要通过安全 FTP 发送和接收文件。 最初的应用程序是客户端-服务器,并使用 MOVEit Freely 进行 SFTP。 是否有一个库或产品可以用来在 .NET 中执行此操作?
I'm rewriting an in-house client-server application as a .NET MVC application. It needs to send and receive files via secure FTP. The original application was client-server and used MOVEit Freely to do SFTP. Is there a library or product I can use to do it from within .NET?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
http://www.enterpriset.com/products/edtftpnet/overview.html
http://www.enterprisedt.com/products/edtftpnet/overview.html
只需使用内置的 FtpWebRequest 和 FtpWebResponse 类。
Just use the built-in FtpWebRequest and FtpWebResponse classes.
看看SharpSSH,我知道他们支持sftp,不知道有多难将会写服务器端。
Have a look at SharpSSH, I know they have support for sftp, don't know how hard it will be to write the server side.
我们的 Rebex 文件传输包 支持安全 FTP 的两种变体 - SFTP 和 FTPS( FTP/SSL)。
Our Rebex File Transfer Pack supports both variants of Secure FTP - the SFTP and FTPS (FTP/SSL).
如果您不想支付任何费用,您可以轻松使用内置的 FtpWebRequest 适用于普通 FTP 和 FTPES(使用 SSL 的显式 FTP)。 对于 FTPS(隐式 FTP+SSL),我推荐 Alex FTPS 客户端。 最后,对于 SFTP(通过 SSH 的 FTP),您可以使用 SharpSSH。 这种方法并不适合所有人——它实际上只适合那些廉价的溜冰者。 但是,我一直在使用这个组合来满足生产环境中的所有数据传输需求,并且效果很好。 产品已经过时,但协议是稳定的,所以谁在乎呢。
If you don't want to pay anything, you can easily use the built-in FtpWebRequest for vanilla FTP and FTPES (explicit FTP with SSL). For FTPS (implicit FTP+SSL), I recommend Alex FTPS Client. And finally, for SFTP (FTP over SSH), you can use SharpSSH. This method isn't for everyone - it's really just for the cheap skate. But, I've been using this combo for all my data transfer needs in a production environment and it works great. The products are stale, but the protocols are stable, so who cares.
看一下 edtFTPnet/PRO,它在 .网。
您可能还想看看 CompleteFTP,这是一个快速、适用于 Windows 平台的紧凑型 SFTP 服务器(还支持 FTP 和 FTPS)。
我可能会补充一点,使用术语“安全 FTP”可能会相当令人困惑。 它可能意味着 SFTP,这是一种通过 SSH 运行的安全文件传输协议。 或者它可能意味着 FTPS,它基本上是通过 SSL 连接运行的标准 FTP 命令。
Take a look at edtFTPnet/PRO, which offers full support for SFTP in .NET.
You might also want to take a look at CompleteFTP, which is a fast, compact SFTP server for Windows platforms (it also supports FTP and FTPS).
I might add that using the term "Secure FTP" can be rather confusing. It can mean SFTP, which is a secure file transfer protocol that runs over SSH. Or it can mean FTPS, which is basically standard FTP commands running over an SSL connection.
这是 .NET 原生的。 您想要的类驻留在 System.Net 命名空间中。 看一下 FtpWebRequest 和 FtpWebResponse 类。 快乐编码:)
This is native in .NET. The classes you want resides in the System.Net namespace. Take a look at FtpWebRequest and FtpWebResponse classes. Happy coding :)
我参与了 MOVEit Freely 的创建。 它从未支持基于 SSH 的 SFTP - 它仅支持 FTP/S。 它最初的作用是“直接”替换 Microsoft 的 FTP.exe 客户端 - 并提供对 SSL/TLS 的额外支持。
MOVEit Freely 最初构建在 Dundas FTP/S 堆栈之上,但随着 FTP/S 的发展,我们对原始源代码进行了大量修改。 (我们进入得有点早。) 如今,Dundas 专注于仪表板组件,我们与 Dundas 签署的许可协议表示,我们永远不会基于他们的代码发布独立的 FTP/S 组件。 (这是此类 OEM 许可证的标准。)换句话说,我会查看上面基于 Windows 的建议之一。 (我推荐 \n 软件中的组件,也喜欢 Windows 上的 Rebex 产品。)
I was involved in creating MOVEit Freely. It never had support for SFTP over SSH - it only had support for FTP/S. Its original role was to be a "drop-in" command-for-command replacement of Microsoft's FTP.exe client - with extra support for SSL/TLS.
MOVEit Freely was originally built on top of a Dundas FTP/S stack, but we heavily modifed the original source code as FTP/S evolved. (We got in a bit early.) These days Dundas is focused on Dashboard components and the license agreement we signed with Dundas said that we'd never publish a standalone FTP/S component based on their code. (That's standard for that kind of OEM license.) In other words, I'd check out one of the Windows-based recommendations above. (I recommend components from \n software, and also like the Rebex offering on Windows.)