Your destination for complete Tech news

Copy files and folders using SCP

535 0
< 1 min read

To copy a file from Server to your local computer, local to server or server to server, use the command below

scp [email protected]:/path/to/your/file /path/to/your/local/filename

To copy a folder, add -r flag which will copy all files inside the folder recursively

scp -r [email protected]:/path/to/your/folder /path/to/your/destination

Leave A Reply

Your email address will not be published.

2 × two =

This site uses Akismet to reduce spam. Learn how your comment data is processed.