Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey Everyone,

looking for an example on downloading and uploading from FTPS site, any help would be great!
Posted

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
 
Share this answer
 
v2
Comments
Jaslier Alex 12-Jan-15 5:46am    
I have used sharpssh, it's very well lib for .net
Thanks.
Sergey Alexandrovich Kryukov 12-Jan-15 14:12pm    
Good. You are welcome. Will you accept the answer formally (green "Accept" button)?
—SA
Jaslier Alex 13-Jan-15 3:35am    
Yes i accept your answer, but i haven't the gree button. :(
Sergey Alexandrovich Kryukov 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
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900