I try to use the winscp.com command line with the pageant.exe tool.
The goal is to bypass any question related to my password.
I know the pageant.exe; it works very weel with the putty.exe and plink.exe.
What is the exact syntax for the command line ?
I try the 2 command without success :
winscp.exe /ini=nul sftp://root@hostname /privatekey=path\file.ppk /script=path2\command_script.cmd /log=path3\log_file.log
winscp.exe /ini=nul /script=path2\command_script.cmd
...considering that the "command_script.cmd" include the path for the SSH Key (ppk), starting by a "open" Again, the script ask me to provide the user Root password. It seems that it doesn't recognize the PAGENT process