Juniper vs. FTPES
If you get timeouts connecting to a FTPES server, check if ALG is enabled (usually is):
JunOS> show security alg status
ALG Status :
DNS : Enabled
FTP : Enabled
H323 : Enabled
MGCP : Enabled
MSRPC : Enabled
PPTP : Enabled
RSH : Enabled
RTSP : Enabled
SCCP : Enabled
SIP : Enabled
SQL : Enabled
SUNRPC : Enabled
TALK : Enabled
TFTP : Enabled
IKE-ESP : Enabled
Enable secure FTP and FTP-ssl protocols:
JunOS# set security alg ftp ftps-extension
Commit and enjoy FTPES!