Re: Asking about password but I have only key
If you want to use a public key authentication, you need to specify your private key using
https://winscp.net/eng/docs/scriptcommand_open#privatekey
It's
See https://winscp.net/eng/docs/scriptcommand_put
WinSCP GUI can generate full script template for you:
https://winscp.net/eng/docs/guide_automation#generating
-privatekey
switch of the open
command:
https://winscp.net/eng/docs/scriptcommand_open#privatekey
It's
put
, not PutFile
.
See https://winscp.net/eng/docs/scriptcommand_put
WinSCP GUI can generate full script template for you:
https://winscp.net/eng/docs/guide_automation#generating