jsch channel is not opened原因及解决
Posted 太白的技术博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jsch channel is not opened原因及解决相关的知识,希望对你有一定的参考价值。
潜在原因1:服务器sshd限制,可通过如下解决:
潜在原因2:服务器负载过高,超时。在连接处增加超时时间session.setTimeout(60000);默认情况下,socket的超时时间大约为21秒。为了确保尽可能成功,可增加重试机制。
以上是关于jsch channel is not opened原因及解决的主要内容,如果未能解决你的问题,请参考以下文章