need help with scripts
I have a batch file;
X:\Path\WinSCP.exe /console /command "option echo on" "option batch abort" "option confirm off" "open sftp://username:password@tdomain.com:22 -hostkey=""rsa2@22:domain.com=0x23,bunchofnumbers""" "ls " "cd /var/www/domain/path/" "put X:\Domain\path\file.xml" "exit"
(I noticed that there is an extra " or am I missing one)
I create another batch file with the following;
@echo off
X:\path\WinSCP.com /console /script="upload.txt"
What is missing in my upload.txt?
cd X:\path\WinSCP
option echo on
option batch on
option confirm off
open sftp://username:password@domain.com:22
cd /var/www/domain/path
option transfer binary
put X:\path\chrome.exe
put X:\path\sign.exe
close
exit
where do I insert the hostkey ?
X:\Path\WinSCP.exe /console /command "option echo on" "option batch abort" "option confirm off" "open sftp://username:password@tdomain.com:22 -hostkey=""rsa2@22:domain.com=0x23,bunchofnumbers""" "ls " "cd /var/www/domain/path/" "put X:\Domain\path\file.xml" "exit"
(I noticed that there is an extra " or am I missing one)
I create another batch file with the following;
@echo off
X:\path\WinSCP.com /console /script="upload.txt"
What is missing in my upload.txt?
cd X:\path\WinSCP
option echo on
option batch on
option confirm off
open sftp://username:password@domain.com:22
cd /var/www/domain/path
option transfer binary
put X:\path\chrome.exe
put X:\path\sign.exe
close
exit
where do I insert the hostkey ?