Skip to content

Instantly share code, notes, and snippets.

@valkirilov
Last active December 6, 2019 15:36
Show Gist options
  • Save valkirilov/91c8fab5f112310f9ff553025687d809 to your computer and use it in GitHub Desktop.
Save valkirilov/91c8fab5f112310f9ff553025687d809 to your computer and use it in GitHub Desktop.
Trransfer files between your devices over the network
# Instal Open SSH server on the remote machine
sudo apt install openssh-server
# General usage
scp <options> source_path destination_path
# Copy a file to the remote system using scp command
scp file user@host:/path/to/file
# Copy a file from the remote system using scp command
scp user@host:/path/to/file /local/path/to/file
# Copy multiple files using scp command
scp file1 file2 user@host:/path/to/directory
# Copy an entire directory with scp command
scp -r /path/to/directory user@host:/path/to/directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment