Solved

Ant SSHEXEC: Reject Host Key

Posted on 2004-10-12
3
1,775 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 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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

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…
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

724 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