commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2019-06-07 | 2019-06-25 | ||
Restored revision 1556181171. Undoing revision 1559909269. (martin) (hidden) | 5.6 Bug 816: Provide passphrase on command line/in scripting and .NET assembly (martin) | ||
Line 13: | Line 13: | ||
winscp.exe [mysession] /refresh [path] | winscp.exe [mysession] /refresh [path] | ||
winscp.exe [mysession] /upload file1 file2 file3 ... [/defaults] | winscp.exe [mysession] /upload file1 file2 file3 ... [/defaults] | ||
- | winscp.exe [mysession] [/privatekey=<file>] [/hostkey=<fingerprint>] | + | winscp.exe [mysession] [/privatekey=<file> [/passphrase=<passphrase>]] |
- | winscp.exe [mysession] [/clientcert=<file>] [/certificate=<fingerprint>] | + | winscp.exe [mysession] [/hostkey=<fingerprint>] |
+ | winscp.exe [mysession] [/clientcert=<file> [/passphrase=<passphrase>]] | ||
+ | winscp.exe [mysession] [/certificate=<fingerprint>] | ||
winscp.exe [mysession] [/passive[=on|off]] [/implicit|explicit] | winscp.exe [mysession] [/passive[=on|off]] [/implicit|explicit] | ||
winscp.exe [mysession] [/timeout=<sec>] | winscp.exe [mysession] [/timeout=<sec>] | ||
Line 53: | Line 55: | ||
If there's already idle WinSCP instance running, the session(s) opens in the existing instance. To force session open in new instance of WinSCP, use ''/newinstance'' parameter. | If there's already idle WinSCP instance running, the session(s) opens in the existing instance. To force session open in new instance of WinSCP, use ''/newinstance'' parameter. | ||
- | Parameter ''/privatekey'' specifies [[local_path|local path]] to [[public_key#private|SSH private key file]]. | + | Parameter ''/privatekey'' specifies [[local_path|local path]] to [[public_key#private|SSH private key file]]. If the key file is encrypted, use ''/passphrase'' to specify its passphrase. |
Parameter ''/hostkey'' specifies fingerprint of expected SSH host key (or several alternative fingerprints separated by semicolon). It makes WinSCP automatically [[ssh_verifying_the_host_key|accept host key]] with the fingerprint. | Parameter ''/hostkey'' specifies fingerprint of expected SSH host key (or several alternative fingerprints separated by semicolon). It makes WinSCP automatically [[ssh_verifying_the_host_key|accept host key]] with the fingerprint. | ||
- | Parameter ''/clientcert'' specifies [[local_path|local path]] to FTPS or WebDAVS [[tls#client_certificate|TLS/SSL client certificate]]. | + | Parameter ''/clientcert'' specifies [[local_path|local path]] to FTPS or WebDAVS [[tls#client_certificate|TLS/SSL client certificate]]. If the certificate is encrypted, use ''/passphrase'' to specify its passphrase. |
When the FTPS or WebDAVS server [[tls#certificate|TLS/SSL certificate]] is not trusted (typically a self-signed certificate), use parameter ''/certificate'' to specify a fingerprint of the untrusted certificate. It makes WinSCP trust the certificate. Several alternative fingerprints can be separated by semicolon. | When the FTPS or WebDAVS server [[tls#certificate|TLS/SSL certificate]] is not trusted (typically a self-signed certificate), use parameter ''/certificate'' to specify a fingerprint of the untrusted certificate. It makes WinSCP trust the certificate. Several alternative fingerprints can be separated by semicolon. |