夜间Rundeck 调度,ssh 出现断开连接等问题

报错如下:

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

原文地址:https://www.cnblogs.com/sunt9/p/6686048.html