Topic "want PAUSE and REM statements, and see a SFTP cache problem"

Author Message
Guest




Just started using WinSCP.

Comments on WinSCP.exe scripting (5.0.5 under Windows 7):

1- Is there any way to put comment lines in a script ? REM statement ?

2- Any way to have a pause for key-press in a script ? PAUSE statement ?

3- Using SFTP on one host, I get "server's host key was not found in the cache".
No matter how many times I press Y to "continue connecting and add host key to the cache",
I get asked the same question the next time I connect. Is the cache not working ?
There's no error message saying so. I didn't do a full install; I'm just
using the WinSCP.exe executable; maybe that's the problem ?
Still should be an error message.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Anonymous wrote:
1- Is there any way to put comment lines in a script ? REM statement ?

Start the line with #
https://winscp.net/eng/docs/scripting#syntax

Quote:
2- Any way to have a pause for key-press in a script ? PAUSE statement ?

No. Will be possible once .NET assembly is available.
https://winscp.net/eng/docs/library

Quote:
3- Using SFTP on one host, I get "server's host key was not found in the cache".
No matter how many times I press Y to "continue connecting and add host key to the cache",
I get asked the same question the next time I connect. Is the cache not working ?
There's no error message saying so. I didn't do a full install; I'm just
using the WinSCP.exe executable; maybe that's the problem ?
Still should be an error message.

Are you having the problem only on this one host? Or in general? Do other configuration persist? What is your configration storage (Registry or INI file)? Can you double check if the host key is not changing?
Bill Dietrich
[View user's profile]

Joined: 2012-01-31
Posts: 3
Location: USA
Hi, I reported this as Guest before being able to register as a user.

I only deal with one SFTP server, so I don't know if it occurs elsewhere.

I don't know what "configuration storage" I'm using; as I said, I just
picked up the EXE and started using it, I didn't do any kind of install.
Thought I read somewhere on the site that this was okay. If there's no
cache, shouldn't I be getting an error message saying so ?

Host key is not changing.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
If you haven't used installer, WinSCP defaults to INI file. Was there an INI file created in the directory where your EXE is? Does it have [SshHostKeys] section with entry for your site?
_________________
Martin Prikryl
Bill Dietrich
[View user's profile]

Joined: 2012-01-31
Posts: 3
Location: USA
Nope, no INI file in the directory where EXE is. EXE is in "Program Files (x86)".
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
The root cause of the problem was added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=801
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