Hi,

   +-From: "Lavanya T" <[EMAIL PROTECTED]> --
   |_Date: Mon, 28 Jul 2008 17:21:49 +0530 _____________
   |
   |Iam trying to connect to a remote server to transport a file using SFTP.
   |But iam getting the error as below -
   |com.jcraft.jsch.JSchException: UnknownHostKey: 10.10.16.10. RSA key
   |fingerprint is f0:f6:db:2b:7b:32:d9:21:c3:1f:61:67:b4:be:56:ab

   |           JSch jsch=new JSch();
   |            int port=22;
   |            jsch.setKnownHosts("10.10.16.10");

You should give the absolute path for 'known_hosts' file, which includes
"10.10.16.10"'s hostkey.

   |            Session session=jsch.getSession(sftpuser, sftphost, port);


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
Fax +81-22-224-8773
Skype callto://jcraft/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to