Differences
This shows you the differences between the selected revisions of the page.
| 2008-04-10 | 2008-04-10 | ||
| commandline and script_commands#open (martin) | verification of the host key (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]]. You can use [[commandline|command-line]] parameter ''hostkey'' (or switch of ''[[script_commands#open|open]]'' command with the same name) to accept the expected hostkey automatically. | + | Note that the first connection to an SSH server requires [[scripting#hostkey|verification of the host key]]. |
| 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. | ||
| Line 47: | Line 47: | ||
| With console interface tool you can also use input/output redirection and pipes. | With console interface tool you can also use input/output redirection and pipes. | ||
| + | |||
| + | ===== [[hostkey]] Verifying the Host Key in Script ===== | ||
| + | The first connection to an SSH server requires [[ssh#verifying_the_host_key|verification of the host key]]. To automate the verification in script, you can use [[commandline|command-line]] parameter ''hostkey'' (or switch of ''[[script_commands#open|open]]'' command with the same name) to accept the expected hostkey automatically. | ||
| + | |||
| + | You can find the fingerprint on [[ui_fsinfo|Server and Protocol Information Dialog]]. | ||
| ===== Running a Script under a Different Account ===== | ===== Running a Script under a Different Account ===== | ||