Hi,

   +-From: =?ISO-8859-9?B?bmF6bP0gZ/xuZPx6?= <nazligundu...@gmail.com> --
   |_Date: Mon, 23 Aug 2010 11:27:13 +0300 ______________________________
   |
   |What is this list used for? It represents the list of algorithms that we
   |support for session but if the first item on the list is not supported by
   |the ssh server than we get an exception and jar file does *not* continue
   |trying second item.

   |For instance: Jsch supports below default config for "cipher.s2c":
   |*aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
   |*
   |but I want to use the "*aes128-cbc*" as default, and if ssh server does not
   |support this algorithm, want to use "*3des-cbc*":
   |session.setConfig("cipher.s2c", "aes128-cbc,3des-cbc");
   |Using code above I get  "*com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT:
   |2 Packet corrupt*" exception when the server does not support aes128-cbc but
   |supports 3des-cbc. (when  the order of the configuration changes as
   |3des-cbc, aes128-cbc; I can have a successful connection)

It is a curious result.  Can you enable the Logger like
  http://www.jcraft.com/jsch/examples/Logger.java


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
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to