TechieHints SOFTWARE

How to Copy Files To Your Linux Machine (Securely!)

Using the scp command (for remote machines):

scp stands for secure copy and uses SSH for secure transfer.

  • Step 1: Open a terminal window on your local machine.
  • Step 2: Use the following command syntax:

Syntax:

scp file_path username@remote_machine_address:destination_directory/

Step 3: Press Enter and enter your password for the remote machine when prompted.

For more advanced options with the scp command, you can use flags like

 -r to copy entire directories or -v for verbose output during the transfer.

scp -pr (preserve ownership and copy folder) /home/bob/media devapp1:/home/bob

ex:

scp -pr C:\Users\projects developer@192.168.0.102:/home/bob

Leave a comment