Respond to Interactive prompt

Advertisement

rpowell460
Joined:
Posts:
2

Respond to Interactive prompt

I am using WinSCP.com to push files to another server using Implicit FTP over TLS (FTPS). But I get the following message that I would like to respond to without user intervention or use a switch provided by WinSCP to provide a "Y" response.

Message:
If you trust this certificate press Y - yes.
I have tried the following syntax without any luck. Am I missing something in the syntax?
WinSCP.com /command open ftps://Username:password@domain/ -implicit -certificate="Fingerprint"

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
38,408
Location:
Prague, Czechia

Re: Respond to Interactive prompt

You are missing quotes around the command:
WinSCP.com /command "open ftps://Username:password@domain/ -implicit -certificate=Fingerprint"
Note that I've also removed the quotes around the Fingerprint as they should not be needed (as the fingerprint does not contain any spaces). If you need quotes for whatever reason, you need to double them.
https://winscp.net/eng/docs/commandline#syntax

WinSCP GUI can generate a commandline/batch file template for you:
https://winscp.net/eng/docs/ui_generateurl#script

Reply with quote

Advertisement

You can post new topics in this forum