Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ant com.jcraft.jsch.JSchException:Auth cancel,连接到我的MAC时_Ant_Ssh - Fatal编程技术网

Ant com.jcraft.jsch.JSchException:Auth cancel,连接到我的MAC时

Ant com.jcraft.jsch.JSchException:Auth cancel,连接到我的MAC时,ant,ssh,Ant,Ssh,我正在使用ANT的以下目标从Win XP连接到我的MAC计算机 <sshexec host="ip" username="user" password="pwd" trust="true" command="ps"/> 但有时它会工作,我会得到输出,但有时(10次执行中的8次)会给我com.jcraft.jsch.jscheexception:Auth cancel exception 所以,这个错误并不是

我正在使用ANT的以下目标从Win XP连接到我的MAC计算机

<sshexec host="ip"
         username="user"
         password="pwd"
         trust="true"
         command="ps"/>

但有时它会工作,我会得到输出,但有时(10次执行中的8次)会给我
com.jcraft.jsch.jscheexception:Auth cancel exception

所以,这个错误并不是一直都会发生

有人能帮忙找出这个问题吗