Portal Home > Knowledgebase > VPS Hosting and Dedicated Servers > Secure copy files on VPS or dedicated server with SCP

Secure copy files on VPS or dedicated server with SCP

Most of the time if you are using a VPS hosting server or own dedicated server you will need to copy a single file, group of files or whole folder to another remove VPS or dedicated server. You can use the old good one FTP way just when uploading files to the remote server. But there is a lot easier and secure way to transfer files between servers with SCP (Secure Copy Program).

When you like to copy a single file from one VPS or dedicated server to another one you can use the following SSH command:

scp file.tar [email protected]:/your/directory/

To copy a whole folder between servers you can run the following SSH command:

scp -r folder [email protected]:/your/directory/

When using SCP the server will ask you for the password for the username on the new VPS hosting server or dedicated server (unless you have setup trust between servers with authentication keys). If you like to see all of the command options from shell just type "man scp" in the VPS or dedicated server SSH console. This SSH command will show you the SCP manual with all options you can use like changing server ports and more SCP parameters.

To use SCP you need to have on your VPS hosting server or dedicated server Shell (SSH) access enabled.

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
What is VPS hosting (Views: 2080)
Buy VPS with BTCe (Views: 1681)

* Minimum sign up periods for cPanel Web Hosting plans: Mini - 3mo., Pro - 1mo., Biz - 1mo., cPanel Reseller Hosting, Linux VPS, Windows VPS, Managed cPanel VPS and Dedicated Servers - 1mo. secret link
Accepted payments: Credit/Debit Card, Paypal, Payza, Skrill, WebMoney, CashU, Ukash, paysafecard, Bitcoin, Perfect Money, SolidTrust Pay, OKPay, EgoPay, Western Union/MG, Wire Transfer and more.