ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karunakar Chatla" <karunak...@cybage.com>
Subject Exception while executing SSHEXEC Task
Date Mon, 26 Sep 2005 11:30:32 GMT

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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message