0

I am at server A. I want to copy a file from remote server B to remote server C.

This can be done with below commands,

scp username@B:/path_of_file_on_server_B/file.txt /path_of_file_on_server_A
scp /path_of_file_on_server_A/file.txt username@C:/path_of_file_on_server_C

However I want to understand if there is any other way to directly copy file from remote server B to remote server C.

3

You can use remote paths as both source and target for scp:

scp username@B:/path_of_file_on_server_B/file.txt username@C:/path_of_file_on_server_C
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.