Closed stdnt-xiao closed 8 months ago
Session session = JschUtil.createSession("xxx.xxx.xxx.xxx",22,"docker","docker"); session.connect(); 提示错误: Exception in thread "main" com.jcraft.jsch.JSchException: Session.connect: java.net.SocketException: Connection reset at com.jcraft.jsch.Session.connect(Session.java:565)
检查是否开启代理,如果开启需要关闭
问题
Session session = JschUtil.createSession("xxx.xxx.xxx.xxx",22,"docker","docker"); session.connect(); 提示错误: Exception in thread "main" com.jcraft.jsch.JSchException: Session.connect: java.net.SocketException: Connection reset at com.jcraft.jsch.Session.connect(Session.java:565)
解决方法:
检查是否开启代理,如果开启需要关闭