-hostkey option in a windows script
I am using winscp 4.1.9 (Build 416) on a windows xp client. I created a win script with the -hostkey option to the open command but I get a problem in the following specific situation:
I call WinSCP.exe command and I use /command parameter
.\exe\WinSCP.exe /console /command "option batch on" "option confirm off" "open xx:yy@host.address -hostkey="ssh-rsa 1024 4:0c:bb:78:11:b4:f3:bb:c7:4b:7b:23:3c:a1:ec:76"" ...
I need to put the rsa key into quotes, but I need also to put in quotes the command OPEN.
If I use winscp.exe /console /script=test.txt (specifying the open command with hostkey option) all is ok.
There is a way to pass the open command with hostkey option to winscp.exe directly (without using a script)?
Thanks in advance and regards
Laura
I call WinSCP.exe command and I use /command parameter
.\exe\WinSCP.exe /console /command "option batch on" "option confirm off" "open xx:yy@host.address -hostkey="ssh-rsa 1024 4:0c:bb:78:11:b4:f3:bb:c7:4b:7b:23:3c:a1:ec:76"" ...
I need to put the rsa key into quotes, but I need also to put in quotes the command OPEN.
If I use winscp.exe /console /script=test.txt (specifying the open command with hostkey option) all is ok.
There is a way to pass the open command with hostkey option to winscp.exe directly (without using a script)?
Thanks in advance and regards
Laura