Hello ,

Thanks for reply.
Could you please let us know if you are also setting config.put("mac.c2s", "hmac-sha2-256")


Thanks and Regards,
Usha L




From:        ymnk@jcraft.com (Atsuhiko Yamanaka)
To:        Usha Ladkani/India/IBM@IBMIN
Cc:        jsch-users@lists.sourceforge.net, Anurag Panda/India/IBM@IBMIN
Date:        03/29/2013 02:44 PM
Subject:        Re: [JSch-users] com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read




Hi,

  +-From: Usha Ladkani <uladkani@in.ibm.com> --
  |_Date: Thu, 28 Mar 2013 14:23:25 +0530 _____
  |
  |We are using JSCH library to implement our SFTP client.
  |We need to use hmac 256 and hmac 512  algorithm so as to make our client
  |NIST SP 800 enabled.
  |We found that jsch-0.1.49 supports hmac 256.
  |I have implemented the code to have
  ...

  |config.put("cipher.c2s", "3des-cbc,aes192-cbc,aes128-cbc,aes256-cbc");
  |config.put("mac.c2s", "hmac-sha2-256");
  |session.setConfig(config);
  |session.connect();
  ...
  |com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End
  |of IO Stream Read

I could not reproduce such an exception with Sun's java6u29 running on
Ubuntu10 in connecting to the sshd of OpenSSH 6.0p1 on Ubuntu 12.10.
It is helpful if you show how to reproduce that exception.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
Skype callto://jcraft/
Twitter:
http://twitter.com/ymnk
Facebook:
http://facebook.com/aymnk