Comments on Moving Files Between Linux Systems With SCP

Moving Files Between Linux Systems With SCP This article is about how to move files between servers using the scp (secure copy) command. To show how it works, I will move files from my HDD to a virtual machine running on VirtualBox. There is Linux Mint 11 installed on both drives.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: AndyMcD

A nice article, but you have included some very basic mistakes that need to be highlighted.

  1. You should not use the root account to transfer files.
  2. Setting the file permissions on any file to 777 is totally insecure. An MP4 file does not need to be executable at all.

By: Anonymous

This does actually copy the file.

By: Muhammad

Hi,

I have two Virtual instances of Debian running. I see both have same IP address. So I can not copy from one machine to another one. if I use scp, It copies the file on the same machine. Any hint?

 

Best Regards,

By: VFRDavid

 The title of your article is "Moving Files Between Linux Systems With SCP" - however - this is "just" a copy - the original files remain in their original location and an additional copy of that file will now also exist in the destination location.  I am interested in actually MOVING files from one system to another - where the file would *only* exist in the new location.  Of course, I could run an "scp" command and then an "rm" command - but - I would have to somehow check that the copy was successful, before removing it from the source - which I think it part of the "move" commands in other operating systems (the remove doesn't occur if the copy didn't complete successfully, at least in theory).

Anyway - is there an "easy" way to do this?