Search This Blog

SFTP failed to download big files because when using certain ciphers

When download some big files using sftp command, it could download some files then failed error:
Disconnecting: Protocol error: expected packet type 31, got 94

This cause could be the SSH/SFTP server does not handle the SSH Rekey request when using certain ciphers.

The solution could be:

1). specifying a cipher that is supported by the SSH/SFTP server or 2). incresing the SSH RekeyLimit.


sftp -o User=domain:user -o Ciphers=aes128-ctr -o RekeyLimit=1G your-sftp-server.org



See also

No comments:

Post a Comment