dromara / CloudEon

CloudEon uses Kubernetes to install and deploy open-source big data components, enabling the containerized operation of an open-source big data platform. This allows you to reduce your focus on underlying resource management and maintenance.
https://www.cloudeon.top/
Apache License 2.0
419 stars 100 forks source link

【问题反馈】jsch 连接出错,提示:Session.connect: java.net.SocketException: Connection reset #127

Closed stdnt-xiao closed 8 months ago

stdnt-xiao commented 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)

解决方法:

检查是否开启代理,如果开启需要关闭