Post a reply

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

Bill Dietrich

No INI file

Nope, no INI file in the directory where EXE is. EXE is in "Program Files (x86)".
martin

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?
Bill Dietrich

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

Re: want PAUSE and REM statements, and see a SFTP cache problem

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

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

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?
Guest

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

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.