Check here:

https://github.com/apache/mina-sshd/blob/master/sshd-common/src/main/java/org/apache/sshd/common/SshConstants.java

Sendt fra min iPhone

> 7. okt. 2022 kl. 18:15 skrev Thomas Wolf <t.wolf...@gmail.com>:
> 
> On 07.10.22 17:31 , Stefan Müller wrote:
>> The SSHD server shows following error while receiving an file:
>> [NioProcessor-18] [WARN ] 
>> exceptionCaught(ServerSessionImpl[<private/address:port>])[state=Opened]
>> IllegalStateException: Bad length (32796) for cmd=SSH_MSG_CHANNEL_DATA - 
>> max. allowed=32768
>> My first thought is that it is only a warning and I can ignore it. But the 
>> received file is empty. After looking at the source code i think it is an 
>> error and the client sends too much data.
>> Can somebody explain what is going on?
> 
> Not fully from this description, but I agree that the message indicates
> that a client sent a packet larger than the maximum packet size the
> server allows on the channel.
> 
> What maximum packet size does the client have for this channel (should
> be in the SSH_MSG_CHANNEL_OPEN message; if you switch on debug logging,
> you should be able to see it).
> 
> What client is this? Also Apache MINA sshd, or something else? If not
> Apache MINA sshd, there's nothing we can do, and the problem needs to be
> fixed in the buggy client.
> 
> And what operation is performed exactly? You mention "file upload"...
> via SFTP or SCP?
> 
> Cheers,
> 
> Thomas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@mina.apache.org
> For additional commands, e-mail: users-h...@mina.apache.org
> 

Reply via email to