I want to write SFTP clients and servers in .NET 2.0. Is it possible? Please give me some advice.
Take a look at SharpSSH . It is open source BSD style licensed and supports SCP and SFTP.
The .NET Framework 2.0 does not contain SSH / SFTP support. You may have to try one of the third-party solutions. Our Rebex SFTP for .NET can be checked. Check the samples and tutorials to find out if this suits your needs.
If you need a commercial package, check out edtFTPnet / PRO . It supports multiple connections, directory transfers, and many other neat features (I am one of the product developers).
See SSH.NET - it is still under development / supported, unlike SharpSSH (unless I got a bad intelligence)
Sample code to upload a file .