Use the Screen Command to Recover your SSH Session
What do you do if you lose your SSH connection to a server and you want to open the same session to continue the work your were doing? You use the command screen1 . 1. screen keeps the session running on the remote machine, so reconnecting lets you resume the same shell instead of starting over. GNU Screen can keep long-running shells alive and even split the terminal into multiple panes. Screen is usually pre-installed in modern Linux distros, but if it’s not you can install it using sudo apt install screen. ...