Re: Keeping ssh sessions alive

2023-05-10 Thread Doug H.
On Wed, May 10, 2023, at 2:38 PM, Sam Varshavchik wrote: > I switched wifi routers. The new model, a Linksys WRT3200ACM kills my idle > SSH sessions. I found my old "hold" script, maybe it would work: #!/bin/sh # # For holding open a connection that the sonic wall wants to time # out. if [ $#

Re: Keeping ssh sessions alive

2023-05-10 Thread Tom Horsley
On Wed, 10 May 2023 17:38:43 -0400 Sam Varshavchik wrote: > Anyone have any tips for defeating this rudeness, short of a brute force > approach. I don't know if this counts as brute force, but you could run an ssh-keyscan command on cron. That sends real data back and forth to server without

Keeping ssh sessions alive

2023-05-10 Thread Sam Varshavchik
I switched wifi routers. The new model, a Linksys WRT3200ACM kills my idle SSH sessions. I have /etc/ssh/sshd_config.d/01-local.conf that has a "ClientAliveInterval" setting. With my previous router setting ClientAliveInterval to 60 seconds was enough to keep it from killing my idle SSH