Hi, I have found a similar problem in digging up our mail archives. It is not explicitly explained, but are you also running jsch on machine A and B?
In drilling down that problem, we had found the JCE implementation on Solaris machine had a problem. Try the following Test.java program on machine B. $ cat com/jcraft/jsch/Test.java package com.jcraft.jsch; import com.jcraft.jsch.*; import com.jcraft.jsch.jce.*; class Test{ public static void main(String[] arg){ for(int i=0; i<10; i++){ try{ DH dh = new com.jcraft.jsch.jce.DH(); dh.init(); dh.setP(DHG1.p); dh.setG(DHG1.g); byte[] e = dh.getE(); System.out.println(e.length); } catch(Exception e){ System.out.println(e); } } } } $ CLASSPATH=.:/tmp/jsch-0.1.42.jar javac com/jcraft/jsch/Test.java $ CLASSPATH=.:/tmp/jsch-0.1.42.jar java com.jcraft.jsch.Test On some Solaris machine, we had found that the value of 'e.length' will sometime become 1, and it is invalid for Diffie-Hellman key-exchange. How about your case? 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 ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users