Linux SCP - copy file between 2 remote servers

1 points
Asked by:

How can I copy file between 2 remote Linux servers with SCP command?

1 answer
1 points
Answered by:

Quick solution:

scp root@ /home/


  • We currently are on remote server 1 (IP:
  • And we want to copy file from remote server 2 (IP:
  • We execute the command from remote server 1
    scp root@ /home/
  • When we execute the command we will be asked to provide password to remote server 2
  • And the file will start to download
  • After download is finish the file will be on server 1 under path:

Note: it is important to use the last slash eg /home/


Without this slash eg /home, we will copy the file not to directory but we will try to copy it as "home" filename instead of

0 comments Add comment
Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂