ead from remote host X.X.X.X: Connection reset by peer解决办法

有的时候要采用scp备份异地的文件,这个时候有的时候会出现如下报错
ead from remote host X.X.X.X: Connection reset by peer
lost connection
解决办法,在客户端上的/etc/ssh/sshd_config添加如下内容:
ClientAliveInterval 300
ClientAliveCountMax 60
重启ssh,看看是否还会出现类似问题?

原文地址:https://www.cnblogs.com/feihongwuhen/p/7169885.html