Post a reply

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)


Topic review


Hello Martin,

thank you, for your prompt reply.

Before we use the version Now I upgrade WinSCP to version
At this newer version, WinSCP close automatically after "access denied".

Thank you Martin!

For the completeness, the log file:
. 2019-03-05 13:01:43.266 Connecting to XXX.XXX.XXX.XXX...
. 2019-03-05 13:01:43.282 Connected with XXX.XXX.XXX.XX. Waiting for welcome message...
< 2019-03-05 13:01:43.298 220 FTP server ready.
> 2019-03-05 13:01:43.298 USER XXXXXX
< 2019-03-05 13:01:43.313 331 Password required for XXXXX
> 2019-03-05 13:01:43.313 PASS ********
< 2019-03-05 13:01:45.360 530 Login incorrect.
. 2019-03-05 13:01:45.360 Connection failed.
. 2019-03-05 13:01:45.360 Password prompt (last login attempt failed)

Re: Close WinSCP if Access denied

That's the expected behavior. Are you using the latest version of WinSCP?
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Close WinSCP if Access denied

Hello together,

I'm using WinSCP to download some files automatically. Sometimes our partner change a password. So I get a Access denied.

At this case I have a little problem, because my software is still waiting, until WinSCP is finish and close the command window.

I call WinSCP with: MayPath\winscp.exe /console /script="MySkricpt.txt"

option confirm off
open ftp://XXX:XXX@XXX"

At this Point I got the "Access denied", and the WinSCP is trying again and again...

My qusetion: is there an option, to close WinSCP if I got an Access denied?

Many Thanks

(Of course I had read the Documents, and I have found no answer)