I'm trying to write an app that send a zip file to a SFTP server with public IP address.
I've installed INDY platform but I can't understand how to use it.
Anyone know how to do it or have a link to a guide?
By SFTP, are you referring to:
-
actual SFTP (file transfer subset of SSH)
- FTP over SSH
- FTP over SSL/TLS
?
Many people get them mixed up, but they are completely different and unrelated protocols. Of the three, Indy supports only FTP over SSL/TLS at this time. It does not support SSH at all.
To use FTP over SSL/TLS in Indy, you can assign a
TIdSSLIOHandlerSocketBase-derived component to the
TIdFTP.IOHandler property, and then you can set the
TIdFTP.UseTLS property to
utUseImplicitTLS or
utUseExplicitTLS as needed, and set the
TIdFTP.DataPortProtection property to
ftpdpsPrivate.