Hi, +-From: Manikandan Chandrasekaran <[email protected]> -- |_Date: Wed, 22 Sep 2010 15:25:32 +0530 ____________________________ | |This is what I would like to do.. |* I get the details of the machine to which I have to make a connection |(From User). |* session.connect() throws a JschException |* Prompt the user whether to accept the fingerprint or not. If no, exit. |* Add the host key to the known hosts |* I'll do session.connect() again |I am stuck at the place where I can add the key to the known hosts.. Can |anybody help?
Try and refer to http://www.jcraft.com/jsch/examples/KnownHosts.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 ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ JSch-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jsch-users
