ssh timeout question

John Johnstone jjohnstone.nospamfreebsd at tridentusa.com
Fri May 31 13:03:49 UTC 2019


On 5/28/19 3:00 PM, @lbutlr wrote:
> On 28 May 2019, at 05:37, John Johnstone <jjohnstone.nospamfreebsd at tridentusa.com> wrote:
>> I also now have a Verizon G1100.  I still have my .ssh/config file with ServerAliveInterval set to 30 and I'm able to maintain ssh sessions for many hours as long as the laptop is not set to sleep.
> 
> It's not a bad idea to at least test this, but I do not have ~/.ssh/config at all and my Mac maintains a ssh connection for weeks at a time. Basically, unless I reboot my FreeBSD server or reboot my Mac, the connection stays up.

I put the ServerAliveInterval in place a long time ago and didn't test 
the need for it after that.  I removed it and yes, connections are 
staying up without it.  Packet monitoring shows TCP Keep-Alives are 
being sent every 2 hours.

-
John J.


More information about the freebsd-questions mailing list