从UNIX系统复制文件到使用蚂蚁窗口 [英] copy file from unix system to windows using ant

查看:120
本文介绍了从UNIX系统复制文件到使用蚂蚁窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何一个可以帮助我

如何从<击> UNIX Windoes系统将文件复制到<击>窗口 UNIX使用蚂蚁?

how to copy file from unix Windoes system to windows UNIX using ant?

在此先感谢

修改

让我详细解释一下我寻找我想要从Windows到UNIX机器上拷贝文件使用ANT(纠正我的previous问题没有从UNIX到Windows)。我想用FTP任务。

Let me explain in detail what I am looking for I want to copy file from windows to unix machine (correcting my previous question not from unix to windows) using ANT. I thought of using ftp task.

在此之前,作为检查我试图通过ftp UNIX从Windows断绝但它给拒绝连接错误(我是否需要提供我的用户名和密码,如果是什么语法的情况下)。

Before that as a check I tried to ftp unix sever from windows but it gave connection refused error(Do I need to provide my username and password,if that is the case what is the syntax).

不过,我可以通过腻子,询问我的用户名和密码进行连接。腻子是否使用不同的协议。

But I am able to connect through putty which asks for my user name and password. Does putty uses a different protocol.

所以,如果是这样的话确实FTP任务的ANT对我的作品?如果不是我需要使用什么样的任务?

So if that is the case does ftp task works for me in ANT?. If not what task I need to use?

推荐答案

大概是最简单的选项(如果是从Windows会 - > Unix的)是蚂蚁SCP任务(这将使用相同​​的基础类型的连接腻子使用的 - - SSH)。 详见蚂蚁SCP任务。请注意,这需要你有JSch 这里

Probably the simplest option (if you are going from Windows -> Unix) is the Ant SCP task (which will use the same underlying type of connection PuTTY uses -- SSH). See the Ant SCP Task for details. Note that this will require that you have JSch here.

这篇关于从UNIX系统复制文件到使用蚂蚁窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆