sporadic LIBSSH2_ERROR_INVALID_MAC: channel read [libssh2_sftp_read]

Get help for specific problems
Posts: 3
Joined: 29 Dec 2022

liquinux

Hi Folks,

I get this very sporadic error message :
LIBSSH2_ERROR_INVALID_MAC: channel read [libssh2_sftp_read]
on my windows 10 system when I try to sync files from a distant storage cloud.
This error occurs somethimes after a few MB, somthimes afert a few hundret MB - even on the same file.
(copying a 500MB+ file is impossible.)

With other software I can copy data from the cloud without any problems or errors.
(The cloud is from a professional provider, so I don`t think they have a misconfiguration.)
Also my PC/Network configuration is straight forward.

Any idea where I could dig?

All the Best
Marco
Posts: 3
Joined: 29 Dec 2022

liquinux

The error still occurs.
I got an update from my provider.
They suggest to use the newer "hmac-sha2-512" algorithm in the SSH Connection. I don`t know if this might help.
User avatar
Site Admin
Posts: 7506
Joined: 9 Dec 2007

Zenju

hmac-sha2-512 is supported by libssh2. But even it it weren't so, I don't think this is the problem because such an issue would be a permanent block, not "sporadic".
Posts: 3
Joined: 29 Dec 2022

liquinux

We found the problem. It was a crappy DSL line in the office walls.
Therefore not a software problem - a hardware problem!
Now everything works fine.