#to start up a window that will run even after ssh disconnect tmux new -s mywindow #to reconnect to that window after ssh reconnect tmux a -t mywindow
Here is what the above code is Doing:
1. It creates a new session named mywindow.
2. It creates a new window in that session.
3. It attaches to the session named mywindow.
4. It attaches to the window in that session.