7

Possible Duplicate:
SFTP Libraries for .NET

is there SFTP Communications in C#?

Community
  • 1
  • 1
Rodniko
  • 4,926
  • 20
  • 69
  • 93
  • 6
    Yes, there is[.](http://stackoverflow.com/questions/4852369/is-there-sftp-communications-in-c) – Matti Virkkunen Jan 31 '11 at 15:03
  • 7
    Given that Google will eventually point here, it's not an unreasonable question. :-) – EricLaw Jan 31 '11 at 15:07
  • yes guys , i googled. i found only open source solutions, i wanted to know if maybe you found (maybe in Framework 4) a c# library that does that... thats what i ment... – Rodniko Jan 31 '11 at 15:11
  • @Rodniko: what's wrong with open source solutions? – thkala Jan 31 '11 at 15:13
  • 1
    Native? The answer is no I'm afraid. AFAIK there is no NATIVE C# lib for handling sFTP as sFTP is part of SSH, which is the Linux way of doing remote control. I guess Microsoft's preferd way of doing secure FTP would be FTPS, FTP over SLL. – Chris Harden Jan 31 '11 at 15:16
  • @thkala: That word. I don't think it means what he thinks it means. – Piskvor left the building Jan 31 '11 at 15:37
  • .NET Framework doesn't have built-in SSH or SFTP. You need to use one of third-party ones, such as our SecureBlackbox ( http://www.eldos.com/sbb/net-sftp.php ) – Eugene Mayevski 'Callback Jan 31 '11 at 15:46

4 Answers4

6

There's a .NET component called SFTPBlackbox which does exactly that. The feature list seems sufficient to me.

They even have a comparison of various .NET SFTP implementations here.

Piskvor left the building
  • 91,498
  • 46
  • 177
  • 222
4

Using Rebex we can achieve that, see this blog , here everything is explained clearly http://www.rebex.net/sftp.net/tutorial-sftp.aspx

Sankar Ganesh PMP
  • 11,927
  • 11
  • 57
  • 90
3

We used the following when trying to do sFTP transfers: http://www.codeproject.com/KB/IP/sharpssh.aspx - What I found is that the trick is to google around for C# SSH implementations, not sFTP directly, as sFTP is a part of SSH and you get less mixed up with other FTP implementations.

Chris Harden
  • 356
  • 2
  • 3
0

Not built-in, as far as I know. There is an SSL Stream class and an FTP class, but I don't think they're wired together. Xceed has a library (http://xceed.com/FTP_NET_Intro.html) that supports FTPS.

Also

http://starksoftftps.codeplex.com/

http://www.rebex.net/kb/secure-ftp.aspx

Martin Vobr
  • 5,757
  • 2
  • 37
  • 43
EricLaw
  • 56,563
  • 7
  • 151
  • 196