From owner-freebsd-net@freebsd.org  Mon Feb 29 16:17:55 2016
Return-Path: <owner-freebsd-net@freebsd.org>
Delivered-To: freebsd-net@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F6EFAB866D
 for <freebsd-net@mailman.ysv.freebsd.org>;
 Mon, 29 Feb 2016 16:17:55 +0000 (UTC)
 (envelope-from chris@stankevitz.com)
Received: from mango.stankevitz.com (mango.stankevitz.com [208.79.93.194])
 by mx1.freebsd.org (Postfix) with ESMTP id 5E3DA1A9C
 for <freebsd-net@freebsd.org>; Mon, 29 Feb 2016 16:17:54 +0000 (UTC)
 (envelope-from chris@stankevitz.com)
Received: from Chriss-MacBook-Pro.local (209-203-101-124.static.twtelecom.net
 [209.203.101.124])
 (using TLSv1.2 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mango.stankevitz.com (Postfix) with ESMTPSA id 2BC605C11E
 for <freebsd-net@freebsd.org>; Mon, 29 Feb 2016 08:10:01 -0800 (PST)
To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
From: Chris Stankevitz <chris@stankevitz.com>
Subject: sshd TcpRcvBuf
Message-ID: <56D46D58.6080708@stankevitz.com>
Date: Mon, 29 Feb 2016 08:10:00 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0)
 Gecko/20100101 Thunderbird/38.5.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Feb 2016 16:17:55 -0000

Hello,

The ssh TcpRcvBuf option [1] works well when running an ssh client to 
indicate that the ssh client should have a large TCP receive buffer. 
This is a good workaround until bug 206716 [2] is fixed for people who 
want their ssh client to receive a lot of data.

I have an ssh server that wants to received a lot of data.

Question: how do I set TcpRcvBuf on the ssh server?  It's undocumented 
so I guessed.  Neither sshd_config ("TcbRcvBuf=8192") nor sshd_flags 
("-oTcpRcvBuf=8192") worked.

Thank you,

Chris

[1] ssh -oTcpRcvBuf=8192 user@host

[2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206716