Topic "-hostkey option in a windows script"

Author Message
divsi
[View user's profile]

Joined: 2009-07-27
Posts: 1
I am using winscp 4.1.9 (Build 416) on a windows xp client. I created a win script with the -hostkey option to the open command but I get a problem in the following specific situation:

I call WinSCP.exe command and I use /command parameter

.\exe\WinSCP.exe /console /command "option batch on" "option confirm off" "open xx:yy@host.address -hostkey="ssh-rsa 1024 4:0c:bb:78:11:b4:f3:bb:c7:4b:7b:23:3c:a1:ec:76"" ...

I need to put the rsa key into quotes, but I need also to put in quotes the command OPEN.

If I use winscp.exe /console /script=test.txt (specifying the open command with hostkey option) all is ok.

There is a way to pass the open command with hostkey option to winscp.exe directly (without using a script)?

Thanks in advance and regards
Laura
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
Thanks for your post. This issue has been added to tracker.
_________________
Martin Prikryl
jdogi

Guest


I was so excited when I found a thread with the same issue that I've run into... until I read the reply.

I take it that there is (at this time) no way around this issue? No way to escape the internal quote characters?

Obviously, I'm trying to avoid using a script file, if at all possible.

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
It have been solved in 4.2.3 as you can see in tracker reference above.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License