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

Sorry, I do not know what the problem might be.
whitedd

I found where the problem is. The error appeared only when using the Asus OpenWRT router. I replaced the router with an AsusWRT router and the problem disappeared. Please write to me if you know what the problem could be in the OpenWRT router. Thank you in advance.
whitedd

Sent :)
martin

Please post a log for the new code too.
whitedd

I try this but have same error:
@echo off
 
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="C:\Users\XXXX\Desktop\DD-WinSCP.log" /ini=nul ^
  /command ^
  "open scp://root@XXXX:XXXX/ -hostkey=""ssh-rsa 3072 XXXX"" -privatekey=""F:\ppk\XXXXrsa.ppk"" -rawsettings PingType=1 AuthGSSAPIKEX=1 Cipher=""aes,chacha20,aesgcm,blowfish,3des,WARN,arcfour,des"" KEX=""rsa,ntru-curve25519,ecdh,dh-gex-sha1,dh-group16-sha512,dh-group17-sha512,dh-group18-sha512,dh-group15-sha512,dh-group14-sha1,WARN,dh-group1-sha1"" HostKey=""rsa,ed448,ed25519,ecdsa,dsa,WARN"" AddressFamily=1 RekeyBytes=0 RekeyTime=0 SendBuf=0 SshSimple=0" ^
    "cd /home/XXXX" ^
    "lcd ""C:\Users\XXXX\Desktop\""" ^
    "get -delete *.tar.gz" ^
    "exit"
 
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)
 
exit /b %WINSCP_RESULT%
whitedd

I can... but explain me how pls...
martin

Re: batch file

Can you try it with different key-exchange algorithm (not ECDH)?
whitedd

batch file

@echo off
 
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="C:\Users\XXXX\Desktop\WinSCP.log" /ini=nul ^
  /command ^
    "open scp://root@XXXX:XXXX/ -hostkey=""ssh-ed25519 255 XXXX"" -privatekey=""F:\ppk\XXXX.ppk"" -rawsettings PingType=1 SendBuf=0 SshSimple=0 TunnelPortNumber=1" ^
    "cd /home/BackupSite" ^
    "lcd ""C:\Users\XXXX\Desktop""" ^
    "get -delete *_XXXX.tar.gz" ^
    "exit"
 
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)
 
exit /b %WINSCP_RESULT%
whitedd

re

The problem occurs exclusively if the transfer is done via SCP (batch file). Via SFTP, everything works normally, but it takes a long time to download. Log sent.
martin

Re: Incorrect MAC received on packet

Can you download the file in any other client?

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. 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.
whitedd

Incorrect MAC received on packet

Trying to download very large file... over 100GB... after one minutes WinSCP disconnecting from my server...error is:
Incorrect MAC received on packet