【问题标题】:WINSCP script stop working after password change for FTP更改 FTP 密码后,WINSCP 脚本停止工作
【发布时间】:2017-08-22 09:29:17
【问题描述】:

我有一个批处理脚本已经工作了好几个月了,我们之前一直在更改密码而没有问题。但我注意到,自从我们上周更改密码后,文件不再传输。我检查了防火墙和设置,一切似乎都很好。使用另一台机器时,该问题无处不在。请参阅下面来自 winscp 的日志文件。密码和用户甚至没有特殊字符。

WinSCP Version 5.9.3 (Build 7136) (OS 6.1.7601 Service Pack 1 - Windows 7 Enterprise)
. 2017-08-22 09:00:24.720 Configuration: C:\Program Files\winSCP\WinSCP.ini
. 2017-08-22 09:00:24.720 Log level: Normal
. 2017-08-22 09:00:24.720 Local account: xxxxxxxxxxxx
. 2017-08-22 09:00:24.720 Working directory: C:\Program Files\WinSCP
. 2017-08-22 09:00:24.720 Process ID: 7804
. 2017-08-22 09:00:24.720 Command-line: "C:\Program Files\winSCP\WinSCP.exe"   /script=xxxxxxxxxxxxhealth.txt /log=c:log_winscp.txt  
. 2017-08-22 09:00:24.720 Time zone: Current: GMT+1 
. 2017-08-22 09:00:24.720 Login time: Tuesday, August 22, 2017 9:00:24 AM
. 2017-08-22 09:00:24.720 --------------------------------------------------------------------------
. 2017-08-22 09:00:24.720 Script: Retrospectively logging previous script records:
> 2017-08-22 09:00:24.720 Script: option batch continue
< 2017-08-22 09:00:24.720 Script: batch           continue  
< 2017-08-22 09:00:24.720 Script: reconnecttime   120       
> 2017-08-22 09:00:24.720 Script: option confirm off
< 2017-08-22 09:00:24.720 Script: confirm         off       
> 2017-08-22 09:00:24.720 Script: reconnecttime 900
< 2017-08-22 09:00:24.720 Script: Unknown command 'reconnecttime'.
. 2017-08-22 09:00:24.720 Script: Failed
> 2017-08-22 09:00:24.720 Script: open ftp://company:***@xxxxxxxxxxxxx.com
. 2017-08-22 09:00:24.720 --------------------------------------------------------------------------
. 2017-08-22 09:00:24.720 Session name: company@xxxxxxxxxx.com (Ad-Hoc site)
. 2017-08-22 09:00:24.720 Host name: xxxxxxxxxx.com (Port: 21)
. 2017-08-22 09:00:24.720 User name: company (Password: Yes, Key file: No, Passphrase: No)
. 2017-08-22 09:00:24.720 Transfer Protocol: FTP
. 2017-08-22 09:00:24.720 Ping type: Dummy, Ping interval: 30 sec; Timeout: 6000 sec
. 2017-08-22 09:00:24.720 Disable Nagle: No
. 2017-08-22 09:00:24.720 Proxy: None
. 2017-08-22 09:00:24.720 Send buffer: 262144
. 2017-08-22 09:00:24.730 UTF: Auto
. 2017-08-22 09:00:24.730 FTPS: None [Client certificate: No]
. 2017-08-22 09:00:24.730 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2017-08-22 09:00:24.730 Local directory: C:\, Remote directory: /, Update: Yes, Cache: Yes
. 2017-08-22 09:00:24.730 Cache directory changes: Yes, Permanent: Yes
. 2017-08-22 09:00:24.730 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2017-08-22 09:00:24.730 Timezone offset: 0h 0m
. 2017-08-22 09:00:24.730 --------------------------------------------------------------------------
. 2017-08-22 09:00:24.730 Connecting to xxxxxxxxxx.com ...
. 2017-08-22 09:00:25.660 Connected with xxxxxxxxxxxxxx.com. Waiting for welcome message...
< 2017-08-22 09:00:25.990 220 Microsoft FTP Service
> 2017-08-22 09:00:25.990 USER company
< 2017-08-22 09:00:26.270 331 Password required for company.
> 2017-08-22 09:00:26.270 PASS **********
< 2017-08-22 09:00:26.550 530 User company cannot log in.
. 2017-08-22 09:00:26.550 Connection failed.
. 2017-08-22 09:00:26.550 Password prompt (last login attempt failed)

【问题讨论】:

  • 阅读标签说明! BATCH-FILE 并不意味着处理多个文件!
  • 谢谢史蒂夫。我已经更改了标签。但是,winscp 仍然从批处理文件运行。
  • 哦..你应该在你的问题中提到这一点。
  • 新密码中是否有特殊字符?
  • 不,没有特殊字符。它只包含字母和数字

标签: winscp


【解决方案1】:

我已经解决了这个问题。密码不喜欢密码末尾的数字,即使 GUI 接受了密码。我确保密码的名称与之前的密码不相似。

感谢马丁的支持

【讨论】:

    猜你喜欢
    • 2011-06-12
    • 2014-10-01
    • 2021-05-21
    • 2011-03-08
    • 1970-01-01
    • 2017-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多