报错如下:

Failed: SSHProtocolFailure: Session.connect: java.net.SocketException: Connection reset

connection is closed by foreign host

解决办法:

Ssh 连接的问题
修改/etc/ssh/sshd_config中#MaxStartups,将其改为MaxStartups 1000
修改/etc/ssh/sshd_config中LoginGraceTime 120,将其改为LoginGraceTime 0,其中0表示不限制连接时间
Service sshd restart

posted on 2017-04-09 19:43  流浪在伯纳乌  阅读(730)  评论(0编辑  收藏  举报