commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2008-04-10 | 2008-04-10 | ||
treat /privatekey as session-specific switch only (martin) | 4.1 /hostkey (martin) | ||
Line 9: | Line 9: | ||
winscp.exe [session] /keepuptodate [local_directory] [remote_directory] [/defaults] | winscp.exe [session] /keepuptodate [local_directory] [remote_directory] [/defaults] | ||
winscp.exe [session] /upload file1 file2 file3 ... [/defaults] | winscp.exe [session] /upload file1 file2 file3 ... [/defaults] | ||
- | winscp.exe [session] [/privatekey=<key_file>] | + | winscp.exe [session] [/privatekey=<key_file>] [/hostkey=<fingerprint>] |
winscp.exe /ini=<inifile> /log=<logfile> | winscp.exe /ini=<inifile> /log=<logfile> | ||
winscp.exe /update | winscp.exe /update | ||
Line 27: | Line 27: | ||
Use ''/defaults'' parameter along with ''/upload'', ''/synchronize'' or ''/keepuptodate'' to skip the settings dialog and start the operation straight away with default settings. | Use ''/defaults'' parameter along with ''/upload'', ''/synchronize'' or ''/keepuptodate'' to skip the settings dialog and start the operation straight away with default settings. | ||
- | Parameter ''/privatekey'' specifies [[public_key#private|private key file]]. | + | Parameter ''/privatekey'' specifies [[public_key#private|private key file]]. Parameter ''/hostkey'' specifies fingerprint or expected host key. It makes WinSCP automatically [[ssh#verifying_the_host_key|accept hostkey]] with the fingerprint. |
With ''/ini'' parameter you may specify path to [[config|configuration INI file]]. It effectively disables using [[config|registry as configuration storage]]. If the file does not exist, default configuration will be used and the file will be created. You can use environment variables in the path, with syntax ''%NAME%''. | With ''/ini'' parameter you may specify path to [[config|configuration INI file]]. It effectively disables using [[config|registry as configuration storage]]. If the file does not exist, default configuration will be used and the file will be created. You can use environment variables in the path, with syntax ''%NAME%''. |