?
Solved

Ant SSHEXEC: Reject Host Key

Posted on 2004-10-12
3
Medium Priority
?
1,793 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
sigmacon earned 2000 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

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
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 …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

771 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