Page 1 of 1

Secure Copy Command

Posted: Mon Nov 27, 2023 5:38 pm
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 and don't forget the colon:

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.