Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# FTP
Hey Everyone,
 
looking for an example on downloading and uploading from FTPS site, any help would be great!
Posted 11-Feb-13 15:30pm
bobb024366
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

SFTP means SSH File Transfer Protocol: http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol[^].
 
As this protocol is not directly supported in .NET FCL, you will have to use some 3-rd party library. Please see:
http://sourceforge.net/projects/sharpssh/[^],
http://www.tamirgal.com/blog/page/SharpSSH.aspx[^],
http://www.routrek.co.jp/en/product/varaterm/granados.html[^],
http://www.eldos.com/sbb/sftp.net/sftp-net-cs-sample.php[^].
 
See also: http://www.dart.com/sftp-ssh-code-examples-samples.aspx[^].
 
You can try to find some more: http://bit.ly/XsXhy8[^].
 
—SA
  Permalink  
v2
Comments
Jaslier Alex at 12-Jan-15 5:46am
   
I have used sharpssh, it's very well lib for .net
Thanks.
Sergey Alexandrovich Kryukov at 12-Jan-15 14:12pm
   
Good. You are welcome. Will you accept the answer formally (green "Accept" button)?
—SA
Jaslier Alex at 13-Jan-15 3:35am
   
Yes i accept your answer, but i haven't the gree button. :(
Sergey Alexandrovich Kryukov at 13-Jan-15 10:43am
   
Opps! Thank you for telling me. I haven't seen that button for a long time as I have nothing to accept. What is that now?
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

SFTP, FTP or FTPS?
 
I'm a bit confused, because title says 'SFTP', tag 'FTP' and answer body 'FTPS'. They are not the same.
 
FTP - is the oldest one. Plain file transfer protocol run over unsecured communication channel.
 
FTPS (or FTP/SSL) is FTP run over TLS/SSL secured communication channel. TLS/SSL channel intialization can be done in flavours called 'explicit' or 'implicit'. See for more info on TLS/SSL implicit and explicit modes[^].
 
SFTP - another, completely unrelated file transfer protocol. SFTP stands for SSH File Transfer protocol.
 
More info can be found here:
http://www.rebex.net/kb/secure-ftp/default.aspx[^]
 
API support
 
FTP - supported via FtpWebRequest included in .NET
FTPS - implicit - supported in FtpWebRequest in .NET
FTPS - explicit - not support by .NET out of the box. You'll need a third party support.
SFTP - not support by .NET out of the box. You'll need a third party support.
 
For FTP I would suggest trying Rebex FTP/SSL[^] - it supports FTP, FTP/SSL implicit and FTP/SSL explicit.
 
For SFTP I would suggest Rebex SFTP[^]. If you get both of them you'll be even able to write code which uses both SFTP and FTP using common IFtp API[^].
 
Other options for SFTP was already mentioned on post above.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 17 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100