Hi,
+-From: =?ISO-8859-9?B?bmF6bP0gZ/xuZPx6?= <[email protected]> --
|_Date: Wed, 18 Aug 2010 17:16:55 +0300 ______________________________
|
|I want to change the order of preference of key exchange or encryption
|algorithms in Jsch. I tried overriding the config as below:
|config = new Properties();
|String kexOrder = getOrderForConfiguration("kex");
|where "getOrderForConfiguration" method returns a string including the
|preferred order of algorithms. This does not seem to work. In addition, can
|I remove one of the algorithm supported to support only one kex algorithm?
|I appreciate your help.
I don't know about the implementation of your getOrderForConfiguration()
method, but you can config and choose kex algorithm as follows,
...
JSch jsch = new JSch();
Session session = jsch.getSession(user, host, 22);
System.out.println("default settings for kex: "+session.getConfig("kex"))
session.setConfig("kex", "diffie-hellman-group1-sha1")
...
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/
Twitter: @ymnk
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users