Securely copy files to Linux across a network

Use scp to copy files securely from one linux computer to another over a network.
$ scp -r /folder/folder1 user@computer.com:/home/user/folder <enter>

where:
/folder/folder1 is the source folder
-r is for recursively copy
user@computer.com: is the destination computer. This can also be an IP address
/home/user/folder is the destination folder.

Once you type above command, you will be asked to enter the password of the user@computer.com. Enter it, and your files will start getting copied over the network.