Differences

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

2009-04-28 2009-05-20
no summary (martin) mysession (martin)
Line 16: Line 16:
option batch on option batch on
option confirm off option confirm off
-open yoursession -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"+open mysession -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
get /remotepath/data.dat c:\localpath\ get /remotepath/data.dat c:\localpath\
exit exit
Line 22: Line 22:
In the script you need at least to: In the script you need at least to:
-  * Replace ''yoursession'' argument to ''[[script_commands#open|open]]'' command with specification of SFTP connection in form ''%%sftp://username@password:hostname%%'' or use name of stored session.+  * Replace ''mysession'' argument to ''[[script_commands#open|open]]'' command with specification of SFTP connection in form ''%%sftp://username@password:hostname%%'' or use name of stored session.
  * Replace hostkey fingerprint after ''hostkey'' switch of open ''[[script_commands#open|open]]'' command with actual fingerprint of your [[ssh#verifying_the_host_key|SFTP/SSH server hostkey]];((Note that depending on encryption method, the hostkey may have different format than shown in the example))   * Replace hostkey fingerprint after ''hostkey'' switch of open ''[[script_commands#open|open]]'' command with actual fingerprint of your [[ssh#verifying_the_host_key|SFTP/SSH server hostkey]];((Note that depending on encryption method, the hostkey may have different format than shown in the example))
  * Replace paths after ''[[script_commands#get|get]]'' command with actual paths to remote file to download from and local directory to download to.   * Replace paths after ''[[script_commands#get|get]]'' command with actual paths to remote file to download from and local directory to download to.

Last modified: by martin