Do you have any sample code to connect to FTPS server?

Advertisement

vovan1415
Joined:
Posts:
1
Location:
PA

Do you have any sample code to connect to FTPS server?

Hello,

This is my first post.
Do you have any sample code to connect to FTPS server.
I have
1.username
2.password
3.port: 990
4.hostname: ftps.host.com
5.File Protocal: FTP
6.Encryption: TSL/SSL Implicit

Need to automate the process to open connection from my server and send/get files.
I was able to connect from GUI of WinSCP but can't connect from the comand line.

Thank You

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Do you have any sample code to connect to FTPS server?

Use open ftps://username:password@ftps.host.com/

See
https://winscp.net/eng/docs/scriptcommand_open
https://winscp.net/eng/docs/session_url

No need to specify a port as 990 is a default port for ftps://.

I was able to connect from GUI of WinSCP but can't connect from the comand line.
In the latest beta/RC version you can use Generate Session URL function:
https://winscp.net/eng/docs/ui_generateurl

Reply with quote

Advertisement

You can post new topics in this forum