首页 > 解决方案 > 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)

有人可以帮我吗?

标签: fileconnectiontransferterminationj2ssh

解决方案


推荐阅读