Introduction
SCP is a Linux command line tool that allows users to upload files and folders to a remote location.
Procedure
Please note that, in the below examples, the root user is used. Any cPanel user can be used for SCP. However, cPanel users can only access files that they have permission to.
- To upload a file from your computer to a remote server, use the following format.
scp /path/to/test.txt root@server-ip:/path/to/upload
- To upload a folder from your computer to a remote server, use the following format.
scp -r /path/to/folder root@server-ip:/path/to/upload/folder
Comments
0 comments
Article is closed for comments.