On 2018-09-15, Chris Bennett <[email protected]> wrote:
> I am using my phone's hotspot, which may or may not be secure, but is
> not censoring my choice of sites to visit. Public WiFi in the USA does
> so all over the place. Worse, when I lived in Washington State, I was
> next to a Naval Air Station, which certainly eavesdrops, not OK, but
> this is the land of the free? Now I am living in the Capital of Texas,
> Austin which also leaves public WiFi under the same problems
> (legislature meets here).
>
> I cannot maintain an SSH connection unattended long enough to go to the
> bathroom and get a cup of coffee without the connection being dropped
> halfway through reading my email.

Perhaps your carrier's NAT has a quick timeout.

Try these sysctls:

net.inet.tcp.always_keepalive=1
net.inet.tcp.keepidle=60

There are ssh-specific keepalives too, but I bet it affects other
protocols too (ftp etc) so the general one is likely to be a better
choice.

Reply via email to