Solved

Ant SSHEXEC: Reject Host Key

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint Disaster Recovery & BCP Papers 5 58
Using BigFix Actions 7 115
Simulate a session in ColdFusion 9.1 3 123
How to configure Tuxedo XAUTHSVR? 8 120
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 …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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