file - j2ssh-merivik-1.5.5.jar 连接在发送文件时被终止
问题描述
我正在使用 j2ssh-1.5.5.jar 文件进行 ssh 连接以将文件传输到服务器。连接正在建立,但在传输文件时,连接被无故终止。
com.sshtools.ssh.SshException: The connection has been terminated! [Unknown cause]
at com.sshtools.ssh2.Ssh2Client.verifyConnection(Ssh2Client.java:789)
at com.sshtools.ssh2.Ssh2Client.openSessionChannel(Ssh2Client.java:484)
at com.sshtools.ssh2.Ssh2Client.openSessionChannel(Ssh2Client.java:478)
at com.sshtools.ssh2.Ssh2Client.openSessionChannel(Ssh2Client.java:444)
at com.sshtools.sftp.SftpClient.<init>(SftpClient.java:153)
at com.sshtools.sftp.SftpClient.<init>(SftpClient.java:123)
有人可以帮我吗?
解决方案
推荐阅读
- python - 如何使用beautifulsoup从div下面提取id数据值?
- sql - Oracle SQL 中部门 ID 的标识符无效
- symfony - 在我的 Symfony 项目中使用 Webpack encore 进行资产管理
- python - Pyperclip 1.8.2 与 Pyautogui 冲突
- python-3.x - 虚拟麦克风中的音频已饱和
- html - 从 Ilustrator 导入 SVG 不会产生清晰的线条
- apache-spark - Spark 3.1 在 Java 中加入两个数据集
- ruby-on-rails - 为什么 WSL2/Ubuntu 上的密钥可以打开凭证文件,但在另一台机器/服务器上却没有?
- java - 使用 @SpringConfigureMockMvc 和 Hibernate 方言的意外行为
- python - 有没有办法在python中调用多个同名文件来合并一个