Differences

This shows you the differences between the selected revisions of the page.

scripting 2009-03-05 scripting 2009-03-05
Line 48: Line 48:
With the console interface tool ''WinSCP.com'' you can also use input/output redirection and pipes. With the console interface tool ''WinSCP.com'' you can also use input/output redirection and pipes.
-===== [[hostkey]] Verifying the Host Key in Script =====+===== [[hostkey]] Verifying the Host Key or Certificate in Script =====
The first connection to an SSH server requires [[ssh#verifying_the_host_key|verification of the host key]]. To automate the verification in script, you can use [[commandline|command-line]] parameter ''hostkey'' (or switch of ''[[script_commands#open|open]]'' command with the same name) to accept the expected hostkey automatically. The first connection to an SSH server requires [[ssh#verifying_the_host_key|verification of the host key]]. To automate the verification in script, you can use [[commandline|command-line]] parameter ''hostkey'' (or switch of ''[[script_commands#open|open]]'' command with the same name) to accept the expected hostkey automatically.
You can find the key fingerprint on [[ui_fsinfo|Server and Protocol Information Dialog]]. You can find the key fingerprint on [[ui_fsinfo|Server and Protocol Information Dialog]].
 +
 +[[ftps#certificate|FTPS certificate]] signed by untrusted authority may also need to be verified.
 +
 +
===== Running a Script under a Different Account ===== ===== Running a Script under a Different Account =====

Last modified: by martin – Currently locked by: 203.83.182.86