ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lybarger <>
Subject sshexec with keyfile
Date Fri, 19 Aug 2005 13:22:19 GMT
i'm trying to use sshexec with a keyfile. i generated a key on the remote 
server using the ssh-keygen -t dsa. this gave me a ~/.ssh/id_dsa and 
~/.ssh/ i pulled the file to the remote machine from 
where i want to run the sshexec task. i put the file into the 

<property name="" value="remoteserver" />
<property name="remote.user" value="username" />
<property name="remote.key" value="" />

<sshexec host="${}" username="${remote.user}" keyfile="${
remote.key}" passphrase="" command="ls -lt"/>

and ant fails with the following message:

buildfile: D:\dev\workspace\autodeploy\build.xml
[esshexec] Identity: id_dsa (The system 
cannot find the file specified)

D:\dev\workspace\autodeploy\build.xml:687: com.jcraft.jsch.JSchException: id_dsa (The system cannot find the file 

Total time: 1 second

any ideas would be most appreciated.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message