Skip to content

Alternative to scp Command

The scp command has become outdated, and not as secure by today's standards. On this page we show an alternative to the scp, known as rsync. rsync is built into Unix systems now, and is built to be a fast and reliable way of copying files and folders to remote machines, you can read more about it here.

Simple Copying

Simply copying a file can be done with the following command:

rsync <source> <destination>

Viewing Progress When Syncing

You can view the progress of the copy operation by passing the --progress, -P flag. You will also need to turn non the verbose option aswell:

rsync -v --progress <source> <destination>

Recursive Copying

Recursive copying is useful if you are copying an entire folder. You can do this with the -r flag:

rsync -rv --progress <source> <destination>

Other Flags & Example

The other flags and their descriptions for them can be found here.

Below we show an example of a good rsync command:

rsync -rhv --progress ~/Downloads/some.pdf john@192.168.1.27:/home/Downloads/