Hi,
+-From: "Akshay Bhatia" <[EMAIL PROTECTED]> --
|_Date: Mon, 15 Sep 2008 18:12:14 +0100 ____________
|
|I am using JSCH API's to write a small SFTP application in Java, which
|is intended to transfer a file to our SFTP server. I have attached the
|test program that I have written, but for some
|reason the API is giving me a reject host error as given below:
|com.jcraft.jsch.JSchException: reject HostKey: ecm-dev2
...
In the formal, you should check the hostkey from the remote to be free
from Man-In-the-middle attack[1], but if you want to skip such a check,
you can do it by adding some property;
Session session=jsch.getSession(user, host, 22);
...
session.setConfig("StrictHostKeyChecking", "no"); //
session.connect()
[1] http://en.wikipedia.org/wiki/Man-in-the-middle_attack
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