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,看看是否还会出现类似问题?

posted @ 2012-01-20 11:24  飞鸿无痕  阅读(420)  评论(0编辑  收藏  举报