Reconnect To a Disconnected SSH Session

We can use screen to reconnect to a disconnected SSH session by -

Usage

Run it on Remote -

$ screen

Upon Disconnection, reconnect to previous session by -

$ screen -d -r

Source: StackOverFlow

Last updated