如何与SFTP服务器通信 [英] How to communicate with SFTP server

查看:41
本文介绍了如何与SFTP服务器通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我们的客户编写了一项服务,该服务使用 FTP 自动将文件传输到指定的目的地.由于历史原因,我使用 WinInet 来执行 FTPing.一切正常,但现在客户想要添加一个仅接受 SFTP 连接的目的地.

I've written a service for our customer that automatically transmits files to given destinations using FTP. For historic reasons I'm using WinInet to perform the FTPing. All works well, but now the customer wants to add one destination that only accepts SFTP connections.

我真的不喜欢从头开始实现这个想法,那么有没有办法在本地或通过 WinInet 与 SFTP 服务器进行通信?有没有我可以使用的系统库(我不怕 P/Invoke :))?我是否必须为此购买第三方组件 - 如果是这样,您会建议使用哪些组件?

I do not really like the idea of implementing this from scratch, so is there a way to communicate natively or through WinInet with a SFTP server? Are there any system libraries that I can use (I have no fear of P/Invoke :) )? Do I have to purchase third party components for that - if so, which ones would you suggest?

推荐答案

遗憾的是,WinInet 或任何其他标准 Windows 库本身并不支持 SFTP.

Unfortunately, SFTP is not natively supported by WinInet or any other standard Windows libraries.

我很幸运与/n Software 的 IP*Works SSH for .NET 交谈到各种 SFTP 服务器.

I've had good luck with /n Software's IP*Works SSH for .NET in talking to a large variety of SFTP servers.

这篇关于如何与SFTP服务器通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆