Created attachment 1320 [details] This adds a ReceiveBufferSize option to ssh(1) For high-BDP connections, it may be necessary to increase the size of the TCP rcvbuf in order to get good performance. In some cases, this can be accomplished by adjusting a kernel setting or using an autotuning kernel. However, these are not always viable options. In some cases the TCP rcvbuf must be set to multiple megabytes in order to accomodate high-latency connections. It's not always practical or desirable to do this for all connections. And autotuning support assumes that a recent Linux kernel or a custom-built kernel is being used, which is not always the case. To address the case where it is not practical to increase the system's default rcvbuf size or use an autotuning kernel, it would be helpful if ssh could adjust the size on a per connection bases.