报错如下:
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