Introduction
How to upload files to your server using SCP via the command line.
Procedure
NOTE: Mac and Linux should already have SCP installed. If you are running Windows, you will need an SSH client. PuTTY is free software that is regularly used for this: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html.
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 (test.txt) using SCP on your computer, use the following command:
scp /path/to/test.txt root@server-ip:/path/to/upload
To upload a folder using SCP:
scp -r /path/to/folder root@server-ip:/path/to/upload/folder
Please read the following article on how to download files using SCP: Using SCP.