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

martin

Re: [WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode

clemensh wrote:

After asking for the passphrase of the client certificate the user only has 10 seconds for entering it. After this time, the console closes without a message.

This issue has been added to the tracker:
https://winscp.net/tracker/1347
clemensh

Thank you very much!
martin

Re: [WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode

As I wrote, do not use batch mode for open command. Enable it only after.

option batch off

open ....
option batch abort
... other commands


Or do not use the batch mode at all, as your script is obviously not running unattended.
clemensh

Re: [WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode

Hi,

thanks for your reply.
So what do you recommend for not saving the password in the script? What are the alternatives?

Thank you!
martin

Re: [WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode

In a batch mode, the script should generally do not prompt for anything.
Do not use a batch mode for the open command, if you expect a prompt.
clemensh

[WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode

In version 5.8 of WinSCP, there is a bug in connecting to a FTPS server in console mode:
After asking for the passphrase of the client certificate the user only has 10 seconds for entering it. After this time, the console closes without a message.

The log ends with the lines
. 2015-06-24 09:32:08.504 Transfer Protocol: FTP

. 2015-06-24 09:32:08.504 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2015-06-24 09:32:08.504 Disable Nagle: No
. 2015-06-24 09:32:08.504 Proxy: None
. 2015-06-24 09:32:08.504 Send buffer: 262144
. 2015-06-24 09:32:08.504 UTF: Auto
. 2015-06-24 09:32:08.504 FTP: FTPS: Implicit TLS/SSL; Passive: Yes [Force IP: On]; MLSD: Auto [List all: Auto]
. 2015-06-24 09:32:08.504 Session reuse: Yes
. 2015-06-24 09:32:08.504 TLS/SSL versions: TLSv1.0-TLSv1.2
. 2015-06-24 09:32:08.504 Local directory: \, Remote directory: /, Update: Yes, Cache: Yes
. 2015-06-24 09:32:08.504 Cache directory changes: Yes, Permanent: Yes
. 2015-06-24 09:32:08.504 Timezone offset: 0h 0m
. 2015-06-24 09:32:08.504 --------------------------------------------------------------------------
. 2015-06-24 09:32:08.507 Certificate is encrypted, need passphrase