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

rsford31

Prompted for Credentials

Hi, I have saved site set up in WinSCP and am using winscp.com and a command file to connect to an SFTP site and upload files through an automated process. When I look at the logs from this process I see the following:
E:\PROGRAM FILES\WINSCP\WINSCP.COM


Process created, PID 7276. Proc count = 1. Single Mode Proc count = 1


batch           abort     
confirm         off       
Prompting for credentials...
Username:

10/05/21 10:15:19 Application 'E:\PROGRAM FILES\WINSCP\WINSCP.COM' complete, ErrorCode: 3221225477

The command file is as follows:
option batch abort
option confirm off
open "SESSIONFOLDER/CLIENTID_OUT"
lcd e:\temp\
cd in
put filename.txt -resumesupport=off -nopreservetime
dir
exit

Interestingly, I turned on logging and it looks like the it's trying to open "SESSIONFOLDER" on port 990 when, I've saved the site CLIENTID_OUT under the folder "SESSIONFOLDER". The site is also set to use port 22 and not 990.
. 2021-10-05 10:10:11.556 --------------------------------------------------------------------------
. 2021-10-05 10:10:11.556 WinSCP Version 5.15.9 (Build 10071) (OS 10.0.14393 - Windows Server 2016 Standard)
. 2021-10-05 10:10:11.556 Configuration: E:\PROGRAM FILES\WINSCP\WINSCP.ini
. 2021-10-05 10:10:11.556 Log level: Normal, Rotating after: 10M
. 2021-10-05 10:10:11.556 Local account: ACTIVEDOMAIN\sngfiletran
. 2021-10-05 10:10:11.556 Working directory: C:\Windows\system32
. 2021-10-05 10:10:11.556 Process ID: 7952
. 2021-10-05 10:10:11.556 Command-line: "E:\PROGRAM FILES\WINSCP\WINSCP.exe" /console=5.15.9 /consoleinstance=_2452_47 "/script=E:\DynamicCmd\NSCU_VALEYO_OUT_8304222.TXT"
. 2021-10-05 10:10:11.556 Time zone: Current: GMT-6, Standard: GMT-7 (Mountain Standard Time), DST: GMT-6 (Mountain Daylight Time), DST Start: 3/14/2021, DST End: 11/7/2021
. 2021-10-05 10:10:11.556 Login time: Tuesday, October 5, 2021 10:10:11 AM
. 2021-10-05 10:10:11.556 --------------------------------------------------------------------------
. 2021-10-05 10:10:11.556 Script: Retrospectively logging previous script records:
> 2021-10-05 10:10:11.556 Script: option batch abort
< 2021-10-05 10:10:11.556 Script: batch           abort     
> 2021-10-05 10:10:11.556 Script: option confirm off
< 2021-10-05 10:10:11.556 Script: confirm         off       
> 2021-10-05 10:10:11.556 Script: open "SESSIONFOLDER/CLIENTID_OUT"
. 2021-10-05 10:10:11.556 --------------------------------------------------------------------------
. 2021-10-05 10:10:11.556 Session name: SESSIONFOLDER (Ad-Hoc site)
. 2021-10-05 10:10:11.556 Host name: SESSIONFOLDER (Port: 990)
. 2021-10-05 10:10:11.556 User name:  (Password: No, Key file: No, Passphrase: No)
. 2021-10-05 10:10:11.556 Transfer Protocol: FTP
. 2021-10-05 10:10:11.556 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2021-10-05 10:10:11.556 Disable Nagle: No
. 2021-10-05 10:10:11.556 Proxy: None
. 2021-10-05 10:10:11.556 Send buffer: 262144
. 2021-10-05 10:10:11.556 UTF: Auto
. 2021-10-05 10:10:11.556 FTPS: Implicit TLS/SSL [Client certificate: No]
. 2021-10-05 10:10:11.556 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2021-10-05 10:10:11.556 Session reuse: Yes
. 2021-10-05 10:10:11.556 TLS/SSL versions: TLSv1.0-TLSv1.2
. 2021-10-05 10:10:11.556 Local directory: default, Remote directory: /CLIENTID_OUT, Update: Yes, Cache: Yes
. 2021-10-05 10:10:11.556 Cache directory changes: Yes, Permanent: Yes
. 2021-10-05 10:10:11.556 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2021-10-05 10:10:11.556 Timezone offset: 0h 0m
. 2021-10-05 10:10:11.556 --------------------------------------------------------------------------
. 2021-10-05 10:10:11.572 Username prompt (no username provided)