I want my SSH login session to remain connected after the computer goes to sleep and wakes up. From what I understand TCP can survive intermittent network problems, so can I change settings so that it can survive for a few hours or days? If not, is there anything similar to SSH that can do that?
I understand that I can set SSH up to automatically reconnect when network becomes available again. But this is not ideal because I want my login session to be in exactly the same place where it was before the laptop went to sleep (even if it's half-way through typing something in the shell command line).
I understand there are other workarounds, but I was hoping there's a way to avoid losing the shell session in the first place.