Incorrect MAC received on packet

Advertisement

whitedd
Joined:
Posts:
7
Location:
Split

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,884
Location:
Prague, Czechia

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.

Reply with quote

whitedd
Joined:
Posts:
7
Location:
Split

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.
  • WinSCP.log (44.65 KB, Private file)

Reply with quote

whitedd
Joined:
Posts:
7
Location:
Split

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%

Reply with quote

Advertisement

whitedd
Joined:
Posts:
7
Location:
Split

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%

Reply with quote

Advertisement

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.

Reply with quote

Advertisement

You can post new topics in this forum