Command line use of HostKey
I am using WinSCP in an SSIS execute process task. The input into the executable is variable so I must execute command line. The process will be run from a system account so I need to pass the hostkey. When I run the script without the hostkey specified, under my account which has accepted the hostkey, it executes successfully. Could you please provide some guidance for my syntax?
Here is the command line:
After running the script I get following in console:
Using WinSCP 4.2.4 (Build 610) on Windows XP.
Here is the command line:
winscp.exe /command "open ""sftp://uid:password@server:22"" -hostkey ""ssh-rsa 1024 00:00:00:00:00:00:00:00:00:00:aa:bb:cc:dd:ee:ff""" "option batch on" "option confirm off" "put ""c:\temp\source\testfile.txt""" "close" "exit"
Too many parameters for command "open". batch on confirm off no session no session