Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any good free .Net network libraries? (FTP, SFTP, SSH, etc.) [closed]

I'm a bit surprised I haven't found a good open source library for performing common network tasks. There are a few very good commercial libraries, but they're too expensive to use on an open source project.

Anyone know of any?

like image 982
Kilhoffer Avatar asked Sep 30 '08 14:09

Kilhoffer


People also ask

Does .NET support SFTP?

NET Core doesn't support native SFTP or SCP protocols. Thus we need to borrow an external SFTP client library. Among a list of SFTP client libraries, SSH.NET is free and works fine for most use cases.

Does SFTP work over SSH?

SFTP File Transfer Protocol - get SFTP client & server. SFTP (SSH File Transfer Protocol) is a secure file transfer protocol. It runs over the SSH protocol. It supports the full security and authentication functionality of SSH.


7 Answers

SSH.NET Library - https://github.com/sshnet/SSH.NET

Inspired by Sharp.SSH, this library is complete rewrite using .NET 4.0, without any third party dependencies and utilizes parallelism as much as possible to allow best performance.

It's been a solid C# implementation of client side SSH.

like image 158
Michael Avatar answered Sep 20 '22 15:09

Michael


edtFTPNet is free, but you have to buy their "Pro" version to get SFTP (FTP over SSH) and FTPS (FTP over SSL).

like image 39
jeffm Avatar answered Sep 23 '22 15:09

jeffm


Although it hasn't been updated in a while, it is free! I remember being able to get SharpSSH to run without much hassle, and it supports port forwarding (which is what I was looking for at the time!).

SharpSSH http://www.tamirgal.com/home/dev.aspx?Item=SharpSsh

like image 43
Ray Li Avatar answered Sep 19 '22 15:09

Ray Li


.Net ships with some basic FTP support via System.Net.FtpWebRequest, but its a bit crude at best. A far superior alternative that I can recommend is dotNET FTP client from sourceforge.

I don't know if you're looking for email libraries too, but its something that I came across, so I'll mention it.

For email composing and delivery, the basic .NET libraries are fine. System.Net.Mail.MailMessage is great for composing emails, and System.Net.Mail.SmtpClient is good for sending emails over SMTP.

For retrieving emails with POP3 and parsing MIME messages, you will want an external library. I've been using POP3 MIME Client from codeproject without any problems.

I hope that helps!

like image 31
Gabriel Avatar answered Sep 20 '22 15:09

Gabriel


It's not a single library, and I'm not sure how good they are but I was able to find a couple of links to open source libraries here:

http://csharp-source.net/open-source/network-clients

Hope this helps! Jeff

like image 22
Jeff Avatar answered Sep 20 '22 15:09

Jeff


Lumisoft is open source and has FTP, DNS, IMAP, POP3 clients, among other stuff. It doesn't include SSH and SFTP though.

like image 44
Mauricio Scheffer Avatar answered Sep 20 '22 15:09

Mauricio Scheffer


  • All-singing-all-dancing solution which looks good to me, but which I haven't tried: http://www.nsoftware.com/products/component/sftp.aspx
  • SSH / SFTP library which my company uses: http://www.eldos.com/sbb/net-sftp.php

In practice, the only place where I currently do SFTP, I use putty's bundled psftp utility, and run it from a process object. That may not be great, but it's working reliably for me.

like image 38
AJ. Avatar answered Sep 20 '22 15:09

AJ.