Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.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

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
Eclipse ant scp在身份验证后挂起_Eclipse_Ant_Scp_Eclipse Indigo_Jsch - Fatal编程技术网

Eclipse ant scp在身份验证后挂起

Eclipse ant scp在身份验证后挂起,eclipse,ant,scp,eclipse-indigo,jsch,Eclipse,Ant,Scp,Eclipse Indigo,Jsch,我想使用scp将文件复制到远程服务器。 我正在使用与Eclipse Indigo捆绑的Ant1.8.2。 此外,我还尝试了各种各样的jsch-*.jar文件(从0.1.29到0.1.46)。在0.1.30之前,我收到一个错误,抱怨缺少记录器。从0.1.30及更高版本开始,它不显示任何错误,但在消息“身份验证成功(密码)”后挂起 这就是定义: <scp verbose="true" remoteTodir="user@myserver.local:/mydir/" tru

我想使用scp将文件复制到远程服务器。 我正在使用与Eclipse Indigo捆绑的Ant1.8.2。 此外,我还尝试了各种各样的jsch-*.jar文件(从0.1.29到0.1.46)。在0.1.30之前,我收到一个错误,抱怨缺少记录器。从0.1.30及更高版本开始,它不显示任何错误,但在消息“身份验证成功(密码)”后挂起

这就是定义:

<scp verbose="true"  
    remoteTodir="user@myserver.local:/mydir/"
    trust="true"
    password="mypwd"            
>       
    <fileset dir="${dist}">
    <include name="myfile/>
    </fileset> 
</scp>

ant-v(verbose模式)提供了其他信息吗?我在Eclipse中运行,但在scp任务中verbose设置为true,所以不会有太大的区别,对吧?可能:D没有看到那个位,sry。您是否尝试过sftp=true,但这只是猜测。我强烈怀疑-v标志将提供更多信息。试试看。
      Buildfile: C:\workspace\build.xml uploadtostaging:
      [echo] Uploading to staging server via FTP ...
      [scp] Connecting to com.myserver.local:22
      [scp] Connecting to com.myserver.local port 22
      [scp] Connection established
      [scp] Remote version string: SSH-2.0-xlightftpd_release_3.7.1
      [scp] Local version string: SSH-2.0-JSCH-0.1.30
      [scp] SSH_MSG_KEXINIT received
      [scp] SSH_MSG_KEXINIT sent
      [scp] kex: server->client 3des-cbc hmac-sha1 none
      [scp] kex: client->server 3des-cbc hmac-sha1 none
      [scp] SSH_MSG_KEXDH_INIT sent
      [scp] expecting SSH_MSG_KEXDH_REPLY
      [scp] ssh_rsa_verify: signature true
      [scp] Permanently added 'com.myserver.local' (RSA) to the list of known hosts.
      [scp] SSH_MSG_NEWKEYS sent
      [scp] SSH_MSG_NEWKEYS received
      [scp] SSH_MSG_SERVICE_REQUEST sent
      [scp] SSH_MSG_SERVICE_ACCEPT received
      [scp] Authentications that can continue: password
      [scp] Next authentication method: password
      [scp] Authentication succeeded (password).

      (...) hangs virtually forever (> 10mins)