Differences

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

2014-07-21 2014-07-28
do not recommend using pageant with scripting (martin) -privatekey/passphrase is for sftp/scp only (martin)
Line 15: Line 15:
Switches: Switches:
^ Switch          ^ Description ^ ^ Switch          ^ Description ^
-| ''-privatekey=<key>''        | [[public_key#private|Private key]] path | +| ''-privatekey=<key>''        | [[public_key#private|SSH private key]] path. \\ [[SFTP]] and [[SCP]] protocols only.
-| ''-passphrase=<phrase>''    | Passphrase for encrypted private keys. &beta_feature |+| ''-passphrase=<phrase>''    | Passphrase for encrypted private keys. &beta_feature \\ [[SFTP]] and [[SCP]] protocols only. |
| ''-timeout=<sec>''          | Server response timeout | | ''-timeout=<sec>''          | Server response timeout |
| ''%%-hostkey="<fingerprint>"%%'' | Specifies fingerprint of expected [[ssh_verifying_the_host_key|SSH host key]] (or several alternative fingerprints separated by semicolon). It makes WinSCP automatically [[scripting#hostkey|accept host key]] with the fingerprint. As the host key fingerprint contains spaces you need to surround it by quotes. //Learn how to [[faq_script_hostkey|obtain host key fingerprint]]//. \\ In exceptional situations, when security is not required, you can use value ''*'' to accept any host key. In this case, script output and log file will include warning about insecure connection. \\ [[SFTP]] and [[SCP]] protocols only. | | ''%%-hostkey="<fingerprint>"%%'' | Specifies fingerprint of expected [[ssh_verifying_the_host_key|SSH host key]] (or several alternative fingerprints separated by semicolon). It makes WinSCP automatically [[scripting#hostkey|accept host key]] with the fingerprint. As the host key fingerprint contains spaces you need to surround it by quotes. //Learn how to [[faq_script_hostkey|obtain host key fingerprint]]//. \\ In exceptional situations, when security is not required, you can use value ''*'' to accept any host key. In this case, script output and log file will include warning about insecure connection. \\ [[SFTP]] and [[SCP]] protocols only. |

Last modified: by martin