Hi Atsuhiko,

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);
       session.connect();
       Channel channel=session.openChannel("sftp");
       channel.connect(); --------------------------------------------debugging 
has shown that the process hangs here
       ChannelSftp c=(ChannelSftp)channel;


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 '^]'.
SSH-2.0-OpenSSH_3.7.1p2

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,
            [email protected],aes128-ctr,aes192-ctr,aes256-ctr
  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.



Best regards,



Bin Jiang

From: Jiang, Bin
Sent: Thursday, October 14, 2010 11:16 PM
To: '[email protected]'
Subject: Dose JSch SSH/SFTP follow to SSH RFCs

Hi  Atsuhiko,


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.
a.       
http://www.mail-archive.com/[email protected]/msg00758.html
b.      
http://www.mail-archive.com/[email protected]/msg00770.html

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?

Best regards,

Bin Jiang

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to