I'm having problem that my network router reboots occasionally and because of that my ssh connection via terminal to my Ubuntu server is ended. The internet connection is just temporary disrupted and don't want to processes I'm running in the terminal are killed.
On my client ~/.ssh/config I have:
TCPKeepAlive yes ServerAliveCountMax 10 ServerAliveInterval 5
But tuning of the above parameters does not help. The server sshd has default ubuntu parameters.
How to setup ssh on client (Mac OS in my case) and sshd on server (Ubuntu in my case) so that my ssh sessions survive reboot of router?