sftp传输中断,内网同一网段

#版本
openEuler release 20.03 (LTS)
NAME=“openEuler”
VERSION=“20.03 (LTS)”
ID=“openEuler”
VERSION_ID=“20.03”
PRETTY_NAME=“openEuler 20.03 (LTS)”
ANSI_COLOR=“0;31”

openEuler release 20.03 (LTS)

#现象
sftp客户端,winscp 或 xterm 都是一样。传了一会就断了。

#日志(messages)
May 18 08:51:43 192 sshd[9122]: Read error from remote host 192.168.1.6 port 53189: Connection reset by peer
May 18 08:51:43 192 audit[8337]: CRYPTO_KEY_USER pid=8337 uid=0 auid=1000 ses=3 msg=‘op=destroy kind=server fp=SHA256:a6:5a:00:89:e2:fe:16:98:72:64:9d:76:f1:fa:f0:49:61:b9:e9:bf:46:90:a8:e8:70:73:e8:82:8f:ae:6d:e2 direction=? spid=8362 suid=1000 exe=“/usr/sbin/sshd” hostname=? addr=? terminal=? res=success’
May 18 08:51:43 192 audit[8337]: CRYPTO_KEY_USER pid=8337 uid=0 auid=1000 ses=3 msg=‘op=destroy kind=session fp=? direction=both spid=8362 suid=1000 rport=53159 laddr=192.168.1.7 lport=22 exe=“/usr/sbin/sshd” hostname=? addr=192.168.1.6 terminal=? res=success’
May 18 08:51:43 192 audit[9120]: CRYPTO_KEY_USER pid=9120 uid=0 auid=1000 ses=5 msg=‘op=destroy kind=server fp=SHA256:a6:5a:00:89:e2:fe:16:98:72:64:9d:76:f1:fa:f0:49:61:b9:e9:bf:46:90:a8:e8:70:73:e8:82:8f:ae:6d:e2 direction=? spid=9122 suid=1000 exe=“/usr/sbin/sshd” hostname=? addr=? terminal=? res=success’
May 18 08:51:43 192 audit[9120]: CRYPTO_KEY_USER pid=9120 uid=0 auid=1000 ses=5 msg=‘op=destroy kind=session fp=? direction=both spid=9122 suid=1000 rport=53189 laddr=192.168.1.7 lport=22 exe=“/usr/sbin/sshd” hostname=? addr=192.168.1.6 terminal=? res=success’
May 18 08:51:43 192 audit[9120]: USER_END pid=9120 uid=0 auid=1000 ses=5 msg=‘op=PAM:session_close grantors=pam_selinux,pam_loginuid,pam_selinux,pam_namespace,pam_keyinit,pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_lastlog acct=“demo” exe=“/usr/sbin/sshd” hostname=192.168.1.6 addr=192.168.1.6 terminal=ssh res=success’
May 18 08:51:43 192 audit[9120]: CRED_DISP pid=9120 uid=0 auid=1000 ses=5 msg=‘op=PAM:setcred grantors=pam_faillock,pam_unix acct=“demo” exe=“/usr/sbin/sshd” hostname=192.168.1.6 addr=192.168.1.6 terminal=ssh res=success’
May 18 08:51:43 192 audit[8337]: USER_END pid=8337 uid=0 auid=1000 ses=3 msg=‘op=PAM:session_close grantors=pam_selinux,pam_loginuid,pam_selinux,pam_namespace,pam_keyinit,pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_lastlog acct=“demo” exe=“/usr/sbin/sshd” hostname=192.168.1.6 addr=192.168.1.6 terminal=ssh res=success’
May 18 08:51:43 192 audit[8337]: CRED_DISP pid=8337 uid=0 auid=1000 ses=3 msg=‘op=PAM:setcred grantors=pam_faillock,pam_unix acct=“demo” exe=“/usr/sbin/sshd” hostname=192.168.1.6 addr=192.168.1.6 terminal=ssh res=success’
May 18 08:51:43 192 audit[9120]: USER_END pid=9120 uid=0 auid=1000 ses=5 msg=‘op=login id=1000 exe=“/usr/sbin/sshd” hostname=? addr=192.168.1.6 terminal=ssh res=success’
May 18 08:51:43 192 audit[9120]: USER_LOGOUT pid=9120 uid=0 auid=1000 ses=5 msg=‘op=login id=1000 exe=“/usr/sbin/sshd” hostname=? addr=192.168.1.6 terminal=ssh res=success’
May 18 08:51:43 192 audit[9120]: CRYPTO_KEY_USER pid=9120 uid=0 auid=1000 ses=5 msg=‘op=destroy kind=server fp=SHA256:a6:5a:00:89:e2:fe:16:98:72:64:9d:76:f1:fa:f0:49:61:b9:e9:bf:46:90:a8:e8:70:73:e8:82:8f:ae:6d:e2 direction=? spid=9120 suid=0 exe=“/usr/sbin/sshd” hostname=? addr=? terminal=? res=success’
May 18 08:51:43 192 audit[8337]: USER_END pid=8337 uid=0 auid=1000 ses=3 msg=‘op=login id=1000 exe=“/usr/sbin/sshd” hostname=? addr=192.168.1.6 terminal=ssh res=success’
May 18 08:51:43 192 audit[8337]: USER_LOGOUT pid=8337 uid=0 auid=1000 ses=3 msg=‘op=login id=1000 exe=“/usr/sbin/sshd” hostname=? addr=192.168.1.6 terminal=ssh res=success’
May 18 08:51:43 192 audit[8337]: CRYPTO_KEY_USER pid=8337 uid=0 auid=1000 ses=3 msg=‘op=destroy kind=server fp=SHA256:a6:5a:00:89:e2:fe:16:98:72:64:9d:76:f1:fa:f0:49:61:b9:e9:bf:46:90:a8:e8:70:73:e8:82:8f:ae:6d:e2 direction=? spid=8337 suid=0 exe=“/usr/sbin/sshd” hostname=? addr=? terminal=? res=success’
May 18 08:51:43 192 systemd-logind[1658]: Session 5 logged out. Waiting for processes to exit.
May 18 08:51:43 192 sshd[8362]: Read error from remote host 192.168.1.6 port 53159: Connection reset by peer
May 18 08:51:43 192 systemd[1]: session-3.scope: Succeeded.
May 18 08:51:43 192 sftp-server[8366]: session closed for local user demo from [192.168.1.6]
May 18 08:51:43 192 systemd-logind[1658]: Session 3 logged out. Waiting for processes to exit.
May 18 08:51:43 192 sftp-server[9123]: forced close “/home/demo/openGauss-5.0.1-openEuler-64bit-all.tar.gz” bytes read 0 written 7733248
May 18 08:51:43 192 systemd-logind[1658]: Removed session 3.
May 18 08:51:43 192 sftp-server[9123]: session closed for local user demo from [192.168.1.6]

看着是客户端引起的

是网络问题,在另一个网段,这个问题消失了。