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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s