If you have a single cipher name that you wish to be used as the
default, you should just pre-pend it to the exiting default list. It
would be nice if there were a "helper" method to do this easily, but you
can still do it.
For instance:
String defaultCipher = "aes128-cbc";
Hashtable cipherList = new Hashtable( );
cipherList.put( "cipher.s2c", defaultCipher + "," +
JSch.getConfig("cipher.s2c") );
cipherList.put( "cipher.c2s", defaultCipher + "," +
JSch.getConfig("cipher.c2s") );
JSch.setConfig( cipherList );
anoopps kumar wrote:
Hi all,
I'm pretty new to jsch :(. I had one requirement wherein i had to read
a file that has the cipher listed and then set it using the jsch.
In the jsch-01.28 version, i guess the default cipher is 3-des. Could
you please help me know where is that getting set as default? I would
add the cipher say 3-des-cbc in one configuration file and the jsch
should set this particular cipher after reading the configuration file.
Could you all please help me .
Thanks in Advance
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users