I need to connect to a SFTP server with a private .ppk key. I can connect with no problems with WinSCP GUI.
I am trying with CLI, but now luck. Could you, please, tell me the exact syntax of the command I must use.
winscp.com /command "open user@sftp_srv" /privatekey=c:\private.ppkor
winscp.exe /console....work perfectly.
winscp.com /script=script_file.txtand in the
script_file.txtI specify the private key
open user@sftp_srv /privatekey=.....This does not work and the error is "Too many parameters with open". Apparently the
/privatekeyswitch here is the problem because without it, the script starts to open the session - of course it fails.
/privatekeywithin a script file ?
It's answered above already.How can we connect using private key
You can post new topics in this forum