Ant ssh can`t connect to computer -


i have problem connection ant build.xml via ssh computer. have computer ip adress: 10.62.11.40, ant have ant code connect computer:

<available property="ant-jsch.present" file="${ant.home}/lib/ant-jsch.jar"/>             <fail if="ant-jsch.present" message="please remove ant-jsch.jar ant_home/lib see [http://ant.apache.org/faq.html#delegating-classloader]"/>          <path id="jsch.path">             <pathelement location="lib/ant-jsch.jar" />             <pathelement location="lib/jsch-0.1.44.jar" />         </path>          <taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.ssh.scp" classpathref="jsch.path" />         <taskdef name="sshexec" classname="org.apache.tools.ant.taskdefs.optional.ssh.sshexec" classpathref="jsch.path" />          <echo message="start working...123"/>         <sshexec host="10.62.11.40" username="${username}" password="${password}" command='cmd /c mkdir "c:\\\\newfolder"' trust="true" failonerror="true" verbose="true"/> 

and piece of output "ant build.xml" command:

  [sshexec] ssh_rsa_verify: signature true   [sshexec] permanently added '10.62.11.40' (rsa) list of known hosts.   [sshexec] ssh_msg_newkeys sent   [sshexec] ssh_msg_newkeys received   [sshexec] ssh_msg_service_request sent   [sshexec] ssh_msg_service_accept received   [sshexec] authentications can continue: publickey,keyboard-interactive,pa ssword   [sshexec] next authentication method: publickey   [sshexec] authentications can continue: keyboard-interactive,password   [sshexec] next authentication method: keyboard-interactive   [sshexec] authentications can continue: password   [sshexec] next authentication method: password   [sshexec] authentication succeeded (password).   [sshexec] cmd : cmd /c mkdir "c:\\\\newfolder"   [sshexec] caught exception, leaving main loop due ssh_msg_disconnect: 2 fork failed: resource temporarily unavailable   [sshexec] disconnecting 10.62.11.40 port 22  build failed c:\isnowe\build.xml:11: following error occurred while executing line: c:\isnowe\lib\macros\lib\is2k8.xml:36: remote command failed exit status -1 

connection computer via normal terminal working properly, can connect , on computer.

'is2k8.xml:36'  

this line

<sshexec host="10.62.11.40" username="${username}" password="${password}" command='cmd /c mkdir "c:\\\\newfolder"' trust="true" failonerror="true" verbose="true"/> 

can have idea what`s wrong?

you're connecting remote host successfully, remote command failing:

cmd /c mkdir "c:\\\\newfolder"'  

can run command command line ?

adding -d flag debug output ant may help.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -