Secure Copy Command

Software, electronics, audio-visual topics
Post Reply
User avatar
Mike R
Site Admin
Posts: 64
Joined: Fri Jan 24, 2020 3:40 am

Secure Copy Command

Post by Mike R »

To securely copy file/folder From a device To a device:
Ensure ssh is running on both machines:

Code: Select all

sudo systemctl start ssh
Cd into the directory the file or folder is located in.
Use the syntax below to copy a folder:

Code: Select all

sudo scp -r "Mike's theme" myuseronthismachine@MY.xxx.IP.xxx:/home/biffboffo/Downloads/
The -r (recuresive) is because it is a folder and the "" marks are due to a space/apostrophe in the name.
The file/folder is delivered to the location in the later part of the command.

Don't forget to turn off ssh once done.
You Wouldn't Believe How Hard I Have to Work to be Lazy
Post Reply