使用SFTP进行文件传输的C#代码,无需安装客户端 [英] C# code to file transfer using SFTP with out installing client

查看:187
本文介绍了使用SFTP进行文件传输的C#代码,无需安装客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想将文件从多个客户端传输到服务器。

所以我决定创建WPF .Net应用程序,然后我将分享应用程序给我的客户。使用WPF应用程序客户端只需提及本地文件路径。代码内部配置的其他内容。 (使用SFTP的名称,密码,服务器路径和SSH密钥)。

我可以使用任何dll或某些东西来实现这一点。



谢谢,

Baskar G

Hi,

I want to transfer a file from more than one client to server.
so i am decided to create WPF .Net application and then I will share the application to my clients. With use of WPF application client just mention the local file path. other things configured internally in the code. (Use name, Password, Server path, and SSH key for SFTP).
Can i able achieve this with use of any dll or some thing.

Thanks,
Baskar G

推荐答案

你不知道什么样的客户端需要一些安装,你需要保持和思考,为什么它可以帮助你编写这些代码。



你可以避免在使用时安装任何东西。 NET-native在源代码中提供的一些库,一个包含客户端SFTP代码的库。例如:

https://bitbucket.org/mattgwagner/sharpssh [ ^ ],

http://sshnet.codeplex.com [ ^ ],

http://www.tamirgal.com/blog/page/SharpSSH .aspx [ ^ ],

http://www.chilkatsoft.com/ssh-sftp-component.asp [ ^ ]。



另请参阅此CodeProject文章: sFTP和.NET [ ^ ]。



你可以随时试着找到别的东西: http://bfy.tw/nmb [ ^ ]。



-SA
You don't know what kind of client which would require some installation you keep and mind and why could it help you to write this code.

You can avoid installing anything when you use some .NET-native some library available in source code, a library containing client-side SFTP code. For example:
https://bitbucket.org/mattgwagner/sharpssh[^],
http://sshnet.codeplex.com[^],
http://www.tamirgal.com/blog/page/SharpSSH.aspx[^],
http://www.chilkatsoft.com/ssh-sftp-component.asp[^].

See also this CodeProject article: sFTP and .NET[^].

You can always try to find something else: http://bfy.tw/nmb[^].

—SA


这篇关于使用SFTP进行文件传输的C#代码,无需安装客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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