How to Recover from an Accidental SSH Disconnection on Linux

SSH remains the most common way by which we access our Linux servers. Most people don’t manually log into the server console itself. Through SSH, you can do almost everything except for certain low-level operations. However, this leaves us open to the possibility of disconnection. It might be unexpected but is a very real possibility. A sudden fluctuation on the Internet, a power surge, and your SSH session are immediately terminated. Along with that, any processes that might have been running are typically terminated as well. Not just the ones active, but all the background processes as well. If you were doing something important that shouldn’t be interrupted in the middle – like a complex installation, this can completely mess up your system.