SSH Connection Times Out When Uninstalling the Pre-Upgrade RPM

Problem

The SSH connection times out when uninstalling the pre-upgrade RPM.

Cause

The default SSH connection timeout is 10 minutes, and uninstalling the pre-upgrade RPM can take longer than 10 minutes.

Solution

Run the tmux command before uninstalling the pre-upgrade RPM. The tmux command prevents network disconnections from interrupting the patching or upgrading.

If the session terminates, resume by switching to the root user and then running the tmux -r command.