You can extend the duration of an SSH session by using the Tmux utility. If you start an Tmux session before performing an operation, you can re-connect to that session even if the connection to the SSH terminal is reset. For more information about using the Tmux utility see Using the Tmux utility.