Jingran Xiao gave me a new jsch-0.1.43.jar which has the patch and also has the zlib code in it. I loaded the source code from jsch-0.1.43.zip and made a jsch-0.1.43.rc2.jar. Unfortunately both of the new versions hang at the same place in the code:
Session session=jsch.getSession(user, host, port);
channel.connect(); --------------------------------------------debugging has shown that the process hangs here
The host I tried to SFTP to is HP ProCurve switch. The ProCurve Network OS has SSH server(including SFTP) but they do NOT have the SSH client.
Here is the version string of that remote sshd:
Connected to host.
Escape character is '^]'.
Here is the SSH information of a ProCurve switch:
SSH Enabled : Yes Secure Copy Enabled : Yes
TCP Port Number : 22 Timeout (sec) : 120
Host Key Type : RSA Host Key Size : 2048
Ciphers : aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc,
MACs : hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
I can make a connection to the switch using FileZilla. Please let me know if I can try some other approach.
From: Jiang, Bin
Sent: Thursday, October 14, 2010 11:16 PM
Subject: Dose JSch SSH/SFTP follow to SSH RFCs
I have sent following questions to you via yahoo mail last Monday. I would greatly appreciate it if you could give me your response as soon as possible.
On my current project, I use JSch library to support SSH/SFTP with HP ProCurve switches. Our switch SSH supports all RFCs describing SSH in the followings. Could you please let me know if JSch SSH/SFTP follows to these SSH RFCs?
* SSH Assigned Numbers (RFC 4250)<http://www.snailbook.com/docs/assigned-numbers.txt>
* SSH Protocol Architecture (RFC 4251)<http://www.snailbook.com/docs/architecture.txt>
* SSH Authentication Protocol (RFC 4252)<http://www.snailbook.com/docs/userauth.txt>
* SSH Transport Layer Protocol (RFC 4253)<http://www.snailbook.com/docs/transport.txt>
* SSH Connection Protocol (RFC 4254)<http://www.snailbook.com/docs/connection.txt>
I have got the same "java.io<http://java.io.IO>.IOException: channel is broken" problem as Scott Halepaska had when I transmit files from ProCurve switches.
You mentioned in your exchanged mail that the version jsch-0.1.43-rc2.zip<http://www.jcraft.com/jsch/jsch-0.1.43-rc2.zip> can correct this problem. Where can I find this version http://www.jcraft.com/jsch/jsch-0.1.43-rc2.zip?
+-From: "Jiang, Bin" <bin.jiang2@...> --
|_Date: Tue, 19 Oct 2010 22:55:22 +0000 ___
|I can make a connection to the switch using FileZilla. Please let
|me know i= f I can try some other approach.
Unfortunately, I don't have a clue, and will not without
the direct access to that server.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.