How to maintain a persistent SSH connection?

David Newall openssh at
Fri Nov 17 16:07:36 AEDT 2017

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"'

More information about the openssh-unix-dev mailing list