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

Advertisement

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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?

Reply with quote

Bill Dietrich
Joined:
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.

Reply with quote

martin
Site Admin
martin avatar

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum