Free SFTP client with dll for file upload and download in C #

I am looking for a free SFTP client. It should also have a free dll in which I can write code to upload and download a file in C # (.NET framework).

For example, the following code is not free, it has a free estimate for 30 days, I want it for free,

Chilkat.SFtp sftp = new Chilkat.SFtp(); bool success; success = sftp.UnlockComponent("Anything for 30-day trial"); sftp.ConnectTimeoutMs = 5000; sftp.IdleTimeoutMs = 10000; int port; string hostname; hostname = "www.my-ssh-server.com"; port = 22; success = sftp.Connect(hostname,port); success = sftp.AuthenticatePw("myLogin","myPassword"); success = sftp.InitializeSftp(); string handle; handle = sftp.OpenFile("hamlet.xml","readOnly","openExisting"); success = sftp.DownloadFile(handle,"c:/temp/hamlet.xml"); success = sftp.CloseHandle(handle); MessageBox.Show("Success."); 
+7
c # ftp client sftp
source share
3 answers

I am currently using SharpSSH, which is free and has a very nice interface. SharpSSH source code page. It has all the authentication features you talked about.

You can do it in C #:

 var sftp = new Sftp(hostName, userName, password); sftp.Connect(port); sftp.Put(putFilePath, toDir); sftp.Get(getFilePath); 
+6
source share

We recommend a look at https://nuget.org/packages/SSH.NET

I think this is more relevant than sharp.ssh, works well for transferring files via sftp.

+4
source share

Maybe you should take a look at WinSCP . Although this is not a library, you can write scripts to write it, and the link is in a good tutorial that shows you how to do this in both C # and Visual Basic.

+2
source share

All Articles