Hi 
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

at com.jcraft.jsch.Session.checkHost(Session.java:690)

at com.jcraft.jsch.Session.connect(Session.java:306)

When I try use the same connection details in my program to a WinSCP
client i am able to connect to the SFTP server without any problems.

 

If anyone has faced similar problems any help will be appreciated.

Thanks

Akshay

 



If you have received this e-mail in error, please return it to the sender 
immediately and delete it and any attachments from your system. Morse plc is 
the UK holding company for various international subsidiaries trading as Morse. 
The registered office for Morse Group Limited (Company Number 2212268) and its 
UK group undertakings is Profile West, 950 Great West Road, Brentford, 
Middlesex TW8 9EE.  VAT Registration 673 0084 47.

Attachment: Testing.java
Description: Testing.java

-------------------------------------------------------------------------
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