kex_exchange_identification: read: Connection reset by peer Red Hat 8

Latest response

I see this error very often on my RedHat 8 servers.
I have an rsync cron job to sync my logs from RH 8 to CentOS 6.5 server.
when I ssh between these servers it seems fine, even with the ssh keys.
But sometimes I get below errors with corn jobs.

From user@server.domain.com Wed Dec 2 11:30:32 2020
Return-Path: user@server.domain.com
X-Original-To: user@server.domain.com
Delivered-To: user@server.domain.com
Received: from server.domain.com (localhost [127.0.0.1])
by server.domain.com (Postfix) with ESMTPS id EDC8C20013A
for user@server.domain.com; Wed, 2 Dec 2020 11:30:32 -0500 (EST)
Received: (from user@localhost)
by server.domain.com (8.15.2/8.15.2/Submit) id 0B2GU2eb1296865;
Wed, 2 Dec 2020 11:30:02 -0500
Date: Wed, 2 Dec 2020 11:30:02 -0500
Message-Id: 202012021630.0B2GU2eb1296865@server.domain.com
From: "(Cron Daemon)" user@server.domain.com
To: user@server.domain.com
Subject: Cron <user@server> /home/user/rsync-log.sh
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=12869>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/201>
X-Cron-Env: <DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/201/bus>
X-Cron-Env: <LANG=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/user>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=user>
X-Cron-Env: <USER=user>
Status: O

kex_exchange_identification: Connection closed by remote host
kex_exchange_identification: read: Connection reset by peer
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.3]

Responses