What is tmux
tmux is a ssh session logging/sharing tool which we can use to reconnect to a ssh session even if we lost the connection in between.
How to install
First we need to install it in the remote machine, to do so
ssh into the remote machine and run this command
sudo apt-get install tmux