You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Karunakar Chatla <ka...@cybage.com> on 2005/09/26 13:30:32 UTC

Exception while executing SSHEXEC Task

Hi,

I want to run some command on FreeBSD box from windows box.
I am using SSHEXEC task for achieving this.

My script looks something like this :
<sshexec host="${bsd.host}"
    username="${bsd.user}"
    keyfile="${key.file}"
    trust="true"
    command='chmod +w "${bsd.dartmail.path}/common/inc/freeBsd/shareLibs/UnixVersion.h"'
    output="${output.folder.path}\ssh.log"
    failonerror="true"/>

I am able to execute this script if I use password property instead of keyfile property. I am getting following exception when executed with 
keyfile property :

build-freebsd.xml:84: com.jcraft.jsch.JSchException: Auth cancel

I have created DSA key pairs on FreeBSD box using ssh-keygen tool.
Copied the id_dsa (private key) to windows box and set the path of this file to key.file property in properties file.

Is there anything more to be done?
Any ideas on this??

Thanks,
Karunakar Chatla