>> I understand that I need to increase the WAIT_FOR_SPACE_TIMEOUT = " channel-output-wait-for-space-timeout" But I am not exactly sure how to pass these config values when creating the scpClient.
There are 2 options: * Globally SshClient client = SshClient.setupDefaultClient(); ...more client initializations... PropertyResolverUtils.updateProperty(client, WAIT_FOR_SPACE_TIMEOUT, ...long milliseconds value... ) client.start(); * Specifically try (ClientSession session = ....) { PropertyResolverUtils.updateProperty(session, WAIT_FOR_SPACE_TIMEOUT, ...long milliseconds value... ) } Note: for the upcoming version 2.6.0 the code is slightly different though same options... See https://github.com/apache/mina-sshd/blob/master/docs/internals.md#properties-and-inheritance-model