Attach to the tmux session over SSH to continue your work.
Store contents of every tmux pane using a shell script.
Store contents of tmux pane to a file to keep the history or inspect recently executed commands.
I am using tmux terminal multiplexer daily. It is an irreplaceable utility that eases everyday tasks as it lets you switch between multiple applications in one terminal. I will briefly describe my personal configuration setup.