I need to copy a file from one server to another. Here is my exact requirement. I am log in from server a and I have to copy a file from server b to server c . So what is the command for it ?
Asked
Active
Viewed 3.2k times
1
-
If you has access of the ftp of the remote server, we can also use **wget** to download like `$wget -r --level=9 --no-parent --reject "index.html*" ftp://
: – Mahendran Sakkarai Jan 19 '15 at 06:24@ /path/to` [Reference1](http://kspace.in/blog/2010/02/22/copy-files-using-wget/) [Reference2](http://stackoverflow.com/a/273776/3049065)
1 Answers
1
scp <FILES> <USER>@<HOST_IP_OR_NAME>:<DIRECTORY>
http://linux.die.net/man/1/scp
Assuming you can log in to server b run the command above and HOST_IP_OR_NAME
is server c

Ferenc Deak
- 34,348
- 17
- 99
- 167
-
Sir the above command will not work for my condition. I am log in from server a and i have to copy a file from server b to server c. Thanks – user3493180 Apr 04 '14 at 09:31
-
-
-
then log in to server B and copy to server C from there :) telnet or ssh supposingly are enabled ... if not you have to ftp locally (to machine A (from B) and from A to C :( ) – Ferenc Deak Apr 04 '14 at 09:40