问题
I want to write SFTP clients and servers in .NET 2.0. Is that possible? Please give me some suggestions
回答1:
Take a look at SharpSSH. It has an open source BSD-style license and supports SCP and SFTP.
回答2:
The .NET Framework 2.0 does not include any support for SSH/SFTP. You probably have to try one of third party solutions. Our Rebex SFTP for .NET can be worth checking. Check the samples and tutorials to see if it fits your needs.
回答3:
If you want a commercial package, take a look at edtFTPnet/PRO. It supports multiple connections, directory transfers, and lots of other neat features (I'm one of the developers on the product).
回答4:
See SSH.NET - it's still in development/maintained, unlike SharpSSH (unless I got bad intel)
Sample code for uploading file.
来源:https://stackoverflow.com/questions/1753709/implementing-sftp-in-2-0