-
-
Save valkirilov/91c8fab5f112310f9ff553025687d809 to your computer and use it in GitHub Desktop.
Trransfer files between your devices over the network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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