Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

If using scripts not GUI so then something like
winscp.com /command "open scp://ops@172.20.1.26/ -privatekey=C:\Users\automation\.ssh\generated_ed25519.ppk" "put localfile.txt /remote/path/" "exit"
sparkxy

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:
winscp scp://ops@172.20.1.26 /clientcert=C:\Users\automation\.ssh\generated_ed25519.ppk /privatekey=C:\Users\automation\.ssh\server_ed25519_cassh.pub

and I get back:
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>

If this is a simple answer, then I am sorry i didn't find whatever this answer is, google doesn't like me.