Differences
This shows you the differences between the selected revisions of the page.
2008-03-01 | 2008-04-10 | ||
old revision restored (martin) (hidden) | 4.1 hostkey (martin) | ||
Line 11: | Line 11: | ||
Multiple sessions can be opened simultaneously. Use the ''[[script_commands#session|session]]'' command to switch between them. | Multiple sessions can be opened simultaneously. Use the ''[[script_commands#session|session]]'' command to switch between them. | ||
- | Note that the first connection to an SSH server requires [[ssh#verifying_the_host_key|verification of the host key]], which cannot be automated by scripting. Therefore, some provision for accepting keys must be made prior to running the script to connect to a new host. Never attempt to make the script verify the host key automatically. | + | Note that the first connection to an SSH server requires [[ssh#verifying_the_host_key|verification of the host key]]. You can use command-line parameter ''hostkey'' (or switch of ''open'' command with the same name) to accept the expected hostkey automatically. |
WinSCP returns exit code 1, when any command is interrupted due to an error or any prompt is answered //Abort// (even automatically in batch mode). Otherwise it returns the exit code 0. | WinSCP returns exit code 1, when any command is interrupted due to an error or any prompt is answered //Abort// (even automatically in batch mode). Otherwise it returns the exit code 0. |