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.