Hi,

I'm using Jsch version 0.1.45 with Jzlib 1.1.0 and WinSSHD SFTP server version 
5.05 in my testing. I got below error when opening a session:

Cannot connect to SFTP
server. server version=SSH-2.0-1.00
FlowSsh: WinSSHD 5.05. 
Kex=diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1.
Ciphers=aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc,aes256-ctr,aes192-ctr,aes128-ctr,3des-ctr,blowfish-cbc,arcfour256,arcfour128,arcfour,none.
MAC=hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96. 
Compression=zlib,z...@openssh.com,none. jcraft.jsch.JSchException: Auth fail at
com.jcraft.jsch.Session.connect(Session.java:464) at
com.jcraft.jsch.Session.connect(Session.java:158)


After debugging, I found that if I set the compression algorithm to "none", it 
works fine. If the compression algorithm is either "zlib, none" or "zlib, 
z...@openssh.com, none", it fails to authenticate with SFTP server.

This error did not occur if I used older versions of Jsch 0.1.44 and Jzlib 
1.0.7 with WinSSHD (versions 5.xx).
Have a look at 0.1.45 change logs, I found that it has a bugfix with packet 
compression:
- bugfix: packet compression may break sessions
          in some case(transferring deflated data).                    FIXED


I think that this fix causes the compatibility issue. Do you have any ideas?

Thanks,


Linh Nguyen
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to