ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nemana, Satya V" <Satya.Nem...@ca.com>
Subject RE: How to remotely copy files from remote server to remote server?
Date Mon, 31 Jan 2005 20:03:08 GMT
"man scp" says -- "Any file name may contain a host and user
specification to indicate that the file is to be copied to/from that
host.  Copies between two remote hosts are permitted."

I am sure, scp should work, but only problem is it prompts for
passwords, but there is a way to work around to avoid passowrd prompt
(edit ~/.ssh/*)

If you are scp fails, try with rcp, which does not prompt for passwords.
"man rcp" says -- "Rcp handles third party copies, where neither source
nor target files are on the current machine."

You need to configure rcp on all the 3 systems -- current host where you
type rcp cmd, and the 2 remote hosts ie. source and target. To make it
quick, add just one line with "+" to .rhosts (see man rhosts) to disable
complete security. This should definitely work.

-Satya

-----Original Message-----
From: Nick_Gianakas@sybari.com [mailto:Nick_Gianakas@sybari.com] 
Sent: Monday, January 31, 2005 2:56 PM
To: Ant Users List
Subject: RE: How to remotely copy files from remote server to remote
server?

> Scp only copies from a local to a remote directory, or from a remote
to
> a local directory. It doesn't work for remote to remote directory
> transfers... 
The BSD scp command supports this, so is the problem a bug or a
limitation 
in jsch?

Regards,
Nick G





Dave Bartmess <dingodave@edingo.net>
01/31/2005 02:46 PM
Please respond to "Ant Users List"
 
        To:     Ant Users List <user@ant.apache.org>
        cc: 
        Subject:        RE: How to remotely copy files from remote
server 
to remote server?


Scp only copies from a local to a remote directory, or from a remote to
a local directory. It doesn't work for remote to remote directory
transfers... 

On Mon, 2005-01-31 at 14:38 -0500, Nick_Gianakas@sybari.com wrote:
> What happened w/ scp?  From your problem description, it should be a 
> perfect fit.
> 
> Regards,
> Nick G
> 
> 
> 
> 
> 
> 
> "Anderson, Rob (Global Trade)" <Rob.Anderson@nike.com>
> 01/31/2005 12:44 PM
> Please respond to "Ant Users List"
> 
>         To:     "Ant Users List" <user@ant.apache.org>
>         cc: 
>         Subject:        RE: How to remotely copy files from remote 
server 
> to remote server?
> 
> 
> > I've tried several ways, but can't seem to find a way to copy a set
of
> > files from a directory on a remote server to another directory on
the
> > same or a different remote server.
> > 
> > ftp and scp don't work, and we don't have the option of sshexec
> > (security issues, supposedly).
> 
> I'm confused. You are allowed to use scp, but not sshexec. They both
use 

> the same protocol and authentication methods. One is no less secure
than 

> the other. If I were you, I'd push for sshexec.
> 
> -Rob Anderson
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
-- 
David A. Bartmess
Software Configuration Manager / Sr. Software Developer
eDingo Enterprises
http://edingo.net
_________________________________________________________________
jSyncManager Development Team (http://www.jsyncmanager.org)
jSyncManager Email List
(https://lists.sourceforge.net/lists/listinfo/jsyncmanager-devel)
 
 But one should not forget that money can buy a bed but not sleep, 
 finery but not beauty, a house but not a home, 
 medicine but not health, luxuries but not culture, 
 sex but not love, and amusements but not happiness.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message