WinSCP command line not accepting working options from UI
I am trying to script out connecting to some Unix hosts via SCP. I have working public key (.ppk format) and auth certificate. If I put this info in the GUI it works perfectly.
Using the same information on the command line tells me it is refused. I have been searching for hours but have not found any useful answers. Can someone help me?
I am trying:
and I get back:
If this is a simple answer, then I am sorry i didn't find whatever this answer is, google doesn't like me.
Using the same information on the command line tells me it is refused. I have been searching for hours but have not found any useful answers. Can someone help me?
I am trying:
winscp scp://ops@172.20.1.26 /clientcert=C:\Users\automation\.ssh\generated_ed25519.ppk /privatekey=C:\Users\automation\.ssh\server_ed25519_cassh.pub
Searching for host... Connecting to host... Authenticating... Using username "ops". Server refused our key. No supported authentication methods available (server sent: publickey) Authentication log (see session log for details): Using username "ops". Server refused our key. Authentication failed. winscp>