Hi, +-From: Steve Anderson <steve.ander...@gmail.com> -- |_Date: Mon, 6 Jan 2014 17:12:57 -0800 _____________ | |Using ant 1.8.3, with jsch 0.1.50, when I try to use a key, I get the |following error: |build.xml:34: com.jcraft.jsch.JSchException: privatekey: aes128-cbc is not |available [B@632dde87 | at com.jcraft.jsch.KeyPair.load(KeyPair.java:663) ... |I have verified my local JRE (1.7) policy allows all encryptions. I can |use the key for connecting via ssh at the command line. I can also use the |UserAuthPubKey example included in jsch to connect.
We have not found the reason for that exception. The cipher method 'aes128-cbc' should be available on Java7 by the default. If you have the scala command, try the following, >$ scala -classpath ./jsch-0.1.50.jar >Welcome to Scala version 2.10.1 (Java HotSpot(TM) Client VM, Java 1.6.0_29). >Type in expressions to have them evaluated. >Type :help for more information. > >scala> import com.jcraft.jsch._ >import com.jcraft.jsch._ > >scala> new jce.AES128CBC >res0: com.jcraft.jsch.jce.AES128CBC = com.jcraft.jsch.jce.AES128CBC@618565 > >scala> res0.init(Cipher.ENCRYPT_MODE, new Array(res0.getBlockSize()), new Array(res0.getIVSize())) It seems 'res0.init(...)' has thrown some exception on your environment. 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 ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users