When installing or updating packages using the yum command in SSH, you may receive the following error:
Network error: Connection reset by peer
This occurs when the network connection to an enabled yum repository fails.
If the server is not experiencing any network issues or you are unable to determine which repository the server failed to connect to, run the following command in SSH as the root user:
yum clean expire-cache