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

(edit) sorry, my bad, apparently I made a mistake before, just tried again and it seems to work! :oops:
Jace

I think so, version 4.2.7 build 758 ?
martin

Re: using open command with -hostkey="xxx" on the commandline?

Jace wrote:

I tried this, for example:
winscp /command "open sftp://name:pasw@domain.com -hostkey=""ssh-rsa 2048 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff"""

and several other variants, but it doesn't work.

The above syntax is correct. Are you using the latest version of WinSCP?
Jace

using open command with -hostkey="xxx" on the commandline?

To specify commands on the command-line, you have to use:
winscp /command "xxx" "yyy" etc

with xxx, yyy, etc being the commands you want to execute.

Now, I want to put an open command on the command-line, including the -hostkey="xxx" option. Problem is, both the hostkey (which contains spaces), as well as the whole open command, need to be placed in quotes (").

I tried this, for example:
winscp /command "open sftp://name:pasw@domain.com -hostkey=""ssh-rsa 2048 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff"""

and several other variants, but it doesn't work.

Is there any way to work around this? (besides demanding that the fingerprint is stored in the .ini file)