Hello Conrad, > "The authenticy of host '10.0.0.105' can't be establisched. > RSA key fingerprint dd:07:<etc> . > Are you sure you want to continue connecting? "
This message is normal when you connect to a host for the first time. Jsch will save the host key of that host in the known_hosts file in the SSH homedir. Does your app tell Jsch where the SSH homedir is, such that the known_hosts file can be read and written? You might want to consider IJSchService.createSession() in order to set up SSH Preferences as specified in the General > Networ Connections Preferences screen. About the "No such algorithm" exception, I'm not sure. Atsuhiko might have an idea. I do not know the "DESede/CBC/NoPadding" algorithm, perhaps this is different than the 3des algorithm that JSch supports. Perhaps you'd have to configure your SSH server to allow other kinds of algorithms. What kind of SSH server is this? Can you send it's config? It might also help if you try connecting your remote from a (cygwin or UNIX) ssh client: ssh -v 10.0.0.105 the debug messages being logged might help understanding what kind of algorithms or MD's your remote expects. Cheers, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Conrad Berhörster [mailto:[EMAIL PROTECTED] > Sent: Monday, September 10, 2007 2:17 PM > To: Oberhuber, Martin > Cc: [email protected] > Subject: Re: [JSch-users] NoSuchAlgorithmException in ssh > > Hello Martin, > > sorry for that delay. > Thanks for your hints. Unfortunately , they won't help > I am also using sch 0.1.31. . Futher i am using Eclipse SDK 3.3.0. > with the buildid I20070625-1500 > So, there are no .classpath files in the project directories > my Metafile.inf is > > -------------------- schnipp ----------------------- > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 > Bundle-Name: Emlipse Plug-in > Bundle-SymbolicName: com.emlix.emlipse;singleton:=true > Bundle-Version: 1.0.0 > Bundle-Activator: com.emlix.emlipse.EmlipsePlugin > Bundle-Vendor: EMLIX > Bundle-RequiredExecutionEnvironment: J2SE-1.4 > Require-Bundle: org.eclipse.core.runtime, > org.eclipse.cdt.managedbuilder.core, > org.eclipse.ui, > org.eclipse.debug.ui, > org.eclipse.cdt.launch, > org.eclipse.cdt.core, > org.eclipse.cdt.debug.core, > org.eclipse.cdt.debug.mi.core, > org.eclipse.cdt.debug.ui, > org.eclipse.cdt.debug.mi.ui, > com.jcraft.jsch, > org.eclipse.ui.console, > org.eclipse.cdt.make.ui, > org.eclipse.jface.text, > org.eclipse.ui.views, > org.eclipse.jsch.core > Eclipse-LazyStart: true > Eclipse-BuddyPolicy: ext > Import-Package: org.eclipse.cdt.debug.internal.ui, > org.eclipse.cdt.debug.mi.internal.ui, > org.eclipse.cdt.debug.mi.internal.ui.dialogfields, > org.eclipse.cdt.make.core, > org.eclipse.cdt.ui.newui, > org.eclipse.cdt.utils.ui.controls, > org.eclipse.ui.wizards.newresource > ----------------------------- schnipp ------------------- > > if i use the ssh command in a shell , i need to add the -i flag, > which specifies the path to the id_file. this flag is need to > added into jsch by > > > String passphrase = "/path/to/target/targetfs/root/.ssh/id_rsa"; > jsch.addIdentity(passphrase); > > right?? > > i have overloaded the MessageClass UserInfo, like i have been > done in the jsch Demo. > This produce a Error > "The authenticy of host '10.0.0.105' can't be establisched. > RSA key fingerprint dd:07:<etc> . > Are you sure you want to continue connecting? " > This Message comes from jsch and will Produce the > NoSuchAlgorthmException: DESede/CBC/NoPadding: DESede > > and an Exception Error String HmacMD5. > > > Do you need more info ?? > > Thanks c~ > > > Am Donnerstag, 6. September 2007 14:52 schrieb Oberhuber, Martin: > > Hello Conrad, > > > > based on your environment, the issue could be because > > of the way Eclipse is loading classes. > > > > sunjce_provider.jar is in JRE/lib/ext, so it is a > > JVM extension. > > > > By default, Eclipse / OSGi bundles only load well-known > > classes from the JVM when you have this in your meta-inf/ > > manifest.mf: > > > > Bundle-RequiredExecutionEnvironment: J2SE-1.4 > > > > In order to allow the JVM loading VM extensions, you need > > to add this to your meta-inf/manifest.mf: > > > > Eclipse-BuddyPolicy: ext > > > > I'm not sure why the TM ssh terminal does not have this > > issue, perhaps it's because we're still using Jsch 0.1.31 > > .. anyways, sending your MANIFEST.MF and .classpath files > > might help so we get an idea what's going on. > > > > Hope this helps, > > -- > > Martin Oberhuber > > Wind River Systems, Inc. > > Target Management Project Lead, DSDP PMC Member > > http://www.eclipse.org/dsdp/tm > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ JSch-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jsch-users
