Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scp between 2 remote hosts help...

Status
Not open for further replies.

bgreen

Programmer
Feb 20, 2003
185
CA
Hi

I am trying to copy a file from one remote host to another. How can I do this?

I tried scp

applmgr@p630s1:/u/iisbjg/JUNK applmgr@p690lp4:/u/iisbjg/JUNK

But this does not work.
 
Correction:

scp applmgr@p630s1:/u/iisbjg/JUNK applmgr@p690lp4:/u/iisbjg/JUNK
 
But this does not work
Not to much informative ...
Any error message ? Unexpected behaviour ?
You may try the -v option to get some debugging info.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I don't believe you can copy from one remote host to another. You will need to copy the file from the first host to the local host, and then copy it to the second remote host.

Annihilannic.
 
Hi

Annihilannic said:
I don't believe you can copy from one remote host to another.
man scp said:
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.
But never worked for me. :-(

Feherke.
 
I take that back... I just tested it, and to my surprise it did work!? I'm sure it didn't last time I tried.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top