I'm having problems with the SSHEXEC ant task.
I am trying to connect to a remote host and execute a command.
I am trying to use "keyfile", so I do not need to use user / pass and remove the problem.
I can connect it, but I will be asked:
[sshexec] Connection to $ HOST: 22
[sshexec] Kerberos username [$ Local_USER]:
[sshexec] Kerberos password for $ Local_USER:
Now, if I just press return at each prompt, it continues and executes the command.
I use this method for automation, so the goal wins if you need to interact.
Here is the ant syntax:
<target name="explode" depends="deploy" description="Creating build on Deployment Server"> <sshexec host="${host}" username="${user}" keyfile="c:\paul\testkey" trust="true" command="${bin}/createBuild.sh"/> </target>
Ant version - 1.8.3 Jsch version - jsch-0.1.42 (also used with jsch-0.1.29)
Can someone help or advise if I do something wrong?
Thanks in advance.
Floor
source share