How to maintain a persistent SSH connection?

David Newall
Fri, 17 Nov 2017 05:07:36 -0000

On 17/11/17 14:27, Phil Pennock wrote:
> I realized afterwards that really, this is too frequent and also that I
> didn't think through what ssh's default buffering behavior might be
> without a PTY.

Ssh transfers as soon as possible.? You don't need to worry about line
buffering or any such nonsense.? This will work fine:

 ?? ssh -T host sh -c '"while sleep 1; do echo -n .; done"'