Differences

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

2009-03-05 2009-04-02
4.2 bug 95 link to associated log entries (martin) hostkey examples and quotes (martin)
Line 256: Line 256:
| ''-privatekey=<key>''        | [[public_key#private|Private key]] path | | ''-privatekey=<key>''        | [[public_key#private|Private key]] path |
| ''-timeout=<sec>''          | Server response timeout | | ''-timeout=<sec>''          | Server response timeout |
-| ''-hostkey=<fingerprint>'' ··| Specifies fingerprint of expected host key (or several fingerprints separated by semicolon). It makes WinSCP automatically [[scripting#hostkey|accept hostkey]] with the fingerprint.  |+| ''-hostkey="<fingerprint>;";'' | Specifies fingerprint of expected host key (or several fingerprints separated by semicolon). It makes WinSCP automatically [[scripting#hostkey|accept hostkey]] with the fingerprint. As the hostkey fingerprint contains spaces you need to enclose it in quotes.|
| ''-passive''                | Passive mode ([[protocols#ftp|FTP protocol]] only) | | ''-passive''                | Passive mode ([[protocols#ftp|FTP protocol]] only) |
Line 263: Line 263:
Examples: Examples:
<code winscp> <code winscp>
-open sftp://martin@example.com:2222 -privatekey=mykey.ppk+open sftp://martin@example.com -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" 
 +open scp://test@example.com:2222 -privatekey=mykey.ppk
open martin@example.com open martin@example.com
open example.com open example.com