Page 1 of 1

ftp ssl

Posted: Mon Nov 17, 2025 2:23 pm
by basim
Hi ,
I m trying to retrieve data using ssl
Using ftp_implicit
ftp = FTP_open( 'address
: 22
: 100
: FTPS_IMPLICIT
: FTPS_PRIVATE
: FTPS_PRIVATE );
I got the following error
DSPLY gsk_secure_soc_init: Peer not recognized or badly formatted
if i change it FTPS_TST the server reply with
0: SSH-2.0-WS_FTP-SSH_9.0.3.65 that is not recognized as a valid reply
"Not a valid FTP reply line"

Can someone help

Thanks for your support

Re: ftp ssl

Posted: Tue Nov 18, 2025 1:42 am
by Scott Klement
The site you are connected to uses the SSH protocol rather than FTP. You won't be able to use FTPAPI with this site.

SFTP = A tool similar to FTP that uses the SSH protocol. This is not FTP, it is just an interface for SSH that works similarly.
FTPS = FTP over SSL. This is actually FTP, and will work with FTPAPI.