Solved

Ant SSHEXEC: Reject Host Key

Posted on 2004-10-12
3
1,741 Views
Last Modified: 2008-01-09
Hi,

  This is regarding the sshexec optional task in ant.  I am using this task for quite sometime.  When I execute my ssh task in ant from command prompt it works fine (file gets transfered to remote system).  Now I have automated the task by scheduling using anthill running on top of tomcat.  Tomcat is running as a windows service.  When I execute the same task using tomcat I get the following error

Caught exception: reject HostKey

Its basically unable to find the ssh key file id_dsa.  Can someone tell me if there is anything needed to be added and am missing something out.  I am sure that this works when executed from command prompt.

Let me know.

Sri
0
Comment
Question by:sramaswam
3 Comments
 
LVL 8

Accepted Solution

by:
sigmacon earned 500 total points
ID: 12379668
Try copying the file (the actual key store in which the host key is 'remembered') into the conf or lib directories of your tomcat installation and see whether that fixes it. If not, find some other way to make the file part of the class path. The ant task also has a parameter that allows you to specify the exact location of the private keyfile. If you want to use this option, make sure that whatever you put there can be seen and accessed from Tomcat. If that still doesn't help let me know.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now