How to Copy Everything in a DIR to Another Machine's SCP

SCP (secure copy) is a Linux program that lets you perform a file or directory copy from one machine to another and have the data stream be encrypted during the transfer. You can use SCP to connect to another machine and copy a directory (sometimes abbreviated as 'dir') from your computer to the other computer.

Instructions

    • 1

      Log in to the Linux machine that you want to copy files to from another machine.

    • 2

      Open a Terminal window. Type "su" and press "Enter."

    • 3

      Type out your root password and press "Enter."

    • 4

      Type "scp -r user@remotemachine: /remote/files/to/copy /local/copy/folder" into the command line, substituting in the actual user, remote machine name, remote file copy path and local destination path for the example values in this command.

    • 5

      Press "Enter," type in the remote machine's password when prompted and press "Enter" again. The directory specified is copied.

Related Searches:

References

Comments

Related Ads

Featured