Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 89395 invoked from network); 5 Feb 2007 11:04:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2007 11:04:57 -0000 Received: (qmail 56986 invoked by uid 500); 5 Feb 2007 11:04:58 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 56941 invoked by uid 500); 5 Feb 2007 11:04:57 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 56930 invoked by uid 99); 5 Feb 2007 11:04:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 03:04:57 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [193.12.60.74] (HELO gw2.tele2.se) (193.12.60.74) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 03:04:48 -0800 To: commons-user@jakarta.apache.org Subject: Why do I get "Disconnecting: bad client public DH value" from the SFTP server ? MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: Eyvind Almqvist Date: Mon, 5 Feb 2007 12:04:23 +0100 X-MIMETrack: S/MIME Sign by Notes Client on Eyvind Almqvist/Tele2(Release 6.5.4|March 27, 2005) at 2007-02-05 12:04:23, Serialize by Notes Client on Eyvind Almqvist/Tele2(Release 6.5.4|March 27, 2005) at 2007-02-05 12:04:23, Serialize complete at 2007-02-05 12:04:23, S/MIME Sign failed at 2007-02-05 12:04:23: The cryptographic key was not found, Serialize by Router on GW2/Tele2(Release 7.0.2|September 26, 2006) at 2007-02-05 12:04:48, Serialize complete at 2007-02-05 12:04:48 Content-Type: multipart/alternative; boundary="=_alternative 003CD3BDC1257279_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 003CD3BDC1257279_= Content-Type: text/plain; charset="US-ASCII" I am building some SFTP java services in Webmethods for Tele2 in Sweden. First I built them as methods in a Java class. Then it is no problem to logg in to the SFTP-server. But when I make a Webmethods java service based on this Java class, it is not possible to logg in. There are no error messages or exceptions from Java, but the application hangs on the "resolveFile" call. The message from the SFTP-logg is "Disconnecting: bad client public DH value". What does this mean and what can I do to avoid it? Here is the code: ------------------------------------------------------------------------------------------- String SloggedIn="false"; FileObject baseFileObject=null; DefaultFileSystemManager fsManager=null; boolean loggedIn=false; try{ fsManager = new DefaultFileSystemManager(); fsManager.addProvider("sftp",new SftpFileProvider()); fsManager.init(); FileSystemOptions fsOpt = new FileSystemOptions(); SftpFileSystemConfigBuilder confB = SftpFileSystemConfigBuilder.getInstance(); confB.setStrictHostKeyChecking(fsOpt, "no"); confB.setTimeout(fsOpt, new Integer(timeout)); String uri="sftp://"+username+":rullgardin10@"+host+":"+port; System.out.println("uri "+uri); baseFileObject = fsManager.resolveFile( uri, fsOpt ); --=_alternative 003CD3BDC1257279_=--