call winscp from unix and how to specify private key file
....SOLVED....
after trying some permutations and combinations of the syntax given in the documentation, I was able to specify the private key file location in the command line itself. And it ran successfully. No need to specify the hostkey (atleast in my case). The code was tested while pageant of putty was off to prevent taking the private key from there.
The command was written in windows command prompt
The command was written in unix machine
after trying some permutations and combinations of the syntax given in the documentation, I was able to specify the private key file location in the command line itself. And it ran successfully. No need to specify the hostkey (atleast in my case). The code was tested while pageant of putty was off to prevent taking the private key from there.
The command was written in windows command prompt
winscp.com user@server_ip_address /command "put readme.txt /path/path1/readme.txt" /privatekey="path_of_private_key\mani.ppk"
The command was written in unix machine
my_script_to_invoke_window_jobs windwo_ip_address 'path_of_winscp.com\\WinSCP.com user@unix_ip_address /command "put path_of_file_in_windows\\r.txt /path_of_file_in_unix/t.txt" /privatekey="path_of_private_key\mani.ppk"'