Ah, that makes sense. Thank you for taking the time to reply, Martin!
- gregb
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
-certificate
switch is not needed.
. 2020-06-29 08:51:34.074 Certificate verified against Windows certificate store
/log=C:\path\to\winscp.log
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.PS C:\Windows> & "C:\program files (x86)\winscp\winscp.com" /command `"option batch abort`" `"option confirm off`" `"option exclude *downloaded*`" `"open ftps://USERNAME:password@ftpsite.company.com -passive=on -certificate='"31:a0:0f:ff:69:cc:9b:d5:10:df:98:36:b8:74:a5:9b:62:27:b1:87"' -rawsettings FtpForcePasvIp=1 ftps=2 fsprotocol=5 portnumber=20021`" `"lcd d:\abc`" `"dir`" `"exit`"
batch abort
confirm off
include |*downloaded*
Connecting to ftpsite.company.com:20021 ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] USERNAME@ftpsite.company.com
d:\abc
D--------- 0 0 ..
Drwxrwxr-x 0 USERNAME FTP 256 Jun 15 2014 inbound
Drwxrwxr-x 0 USERNAME FTP 256 Jun 15 2014 outbound
PS C:\Windows> & "C:\program files (x86)\winscp\winscp.com" /command `"option batch abort`" `"option confirm off`" `"option exclude *downloaded*`" `"open ftps://USERNAME:password@ftpsite.company.com -passive=on -certificate='"aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa"' -rawsettings FtpForcePasvIp=1 ftps=2 fsprotocol=5 portnumber=20021`" `"lcd d:\abc`" `"dir`" `"exit`"
batch abort
confirm off
include |*downloaded*
Connecting to ftpsite.company.com:20021 ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] USERNAME@ftpsite.company.com
d:\abc
D--------- 0 0 ..
Drwxrwxr-x 0 USERNAME FTP 256 Jun 15 2014 inbound
Drwxrwxr-x 0 USERNAME FTP 256 Jun 15 2014 outbound
PS C:\Windows> & "C:\program files (x86)\winscp\winscp.com" /command `"option batch abort`" `"option confirm off`" `"option exclude *downloaded*`" `"open ftps://USERNAME:password@ftpsite.company.com -passive=on -rawsettings FtpForcePasvIp=1 ftps=2 fsprotocol=5 portnumber=20021`" `"lcd d:\abc`" `"dir`" `"exit`"
batch abort
confirm off
include |*downloaded*
Connecting to ftpsite.company.com:20021 ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] USERNAME@ftpsite.company.com
d:\abc
D--------- 0 0 ..
Drwxrwxr-x 0 USERNAME FTP 256 Jun 15 2014 inbound
Drwxrwxr-x 0 USERNAME FTP 256 Jun 15 2014 outbound
PS C:\Windows> exit