If you are an experienced user and feel comfortable using SSH, this article is just for you. For easier alternatives, you can backup via File Manager (Beta), using an FTP client, or with the Import Website feature on hPanel.
SSH is a really efficient and fast way of transferring files from your local computer to the server. To start the upload using this method, you must be logged out from your server.
Open Terminal (Linux/macOS) or Command Prompt/PowerShell (Windows) on your local computer and upload your files using the command format below:
scp -P 65002 /home/user/Desktop/[filename] username@IP:the/path/to/backup
Replace /home/user/Desktop/[filename] with your local path to the file itself. An example command from a Windows computer would look like this:
scp -P 65002 C:/Users/MyUser/Desktop/File.txt u123456789@185.185.185.185:/home/u123456789/domains/domain.tld/public_html
Once you run this command, you will be asked for the FTP account password. Insert the password, then press Enter.
Wait until the upload is done, and you will be good to go
That’s it, now you know how to upload files to your hosting using SSH 😊
Additional resources: