Thank you for quick reply.
This test code works .
But if i add
config.put("mac.c2s", "hmac-sha2-256");
session.setConfig(config);
before session.connect(); .
I get com.jcraft.jsch.JSchException: Algorithm negotiation fail
I want to specifically use only hmac-sha2-256 and hmac-sha2-512.
Thanks and Regards,
Usha
From: y...@jcraft.com (Atsuhiko Yamanaka)
To: Usha Ladkani/India/IBM@IBMIN
Cc: jsch-users@lists.sourceforge.net
Date: 03/20/2013 03:22 PM
Subject: Re: [JSch-users] jsch-0.1.49
Hi,
+-From: Usha Ladkani <uladk...@in.ibm.com> --
|_Date: Wed, 20 Mar 2013 14:05:49 +0530 _____
|
|We found that jsch-0.1.49 supports both these algorithms.
|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();
|Some how It does not work with the SFTP server which supports this
algo.
|and gives error.
|com.jcraft.jsch.JSchException: Algorithm negotiation fail
| at com.jcraft.jsch.Session.receive_kexinit(Session.java:559)
Try the following sample program,
http://www.jcraft.com/jsch/examples/Logger.java
You may find the reason for that problem in its outputs.
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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users