I am having issues with an 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 hitting an issue.
I can get it to connect, but getting prompted for:
[sshexec] Connecting to $HOST:22
[sshexec] Kerberos username [$Local_USER]:
[sshexec] Kerberos password for $Local_USER:
Now if I just hit return at each prompt, it proceeds and executes the command.
I am using this method for automation, so defeats the purpose 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 tried with jsch-0.1.29)
Can anyone help or advise if I am doing something wrong?
Thanks in advance.
Paul