Uploading Files to a Linux Cloud Virtual Machine via SCP

Last Updated At: 2025-10-21 09:10:00

Overview

This document guides you on how to upload files to a Linux Cloud Virtual Machine from a Linux operating system computer using SCP.

Directions

  1. On the Linux computer, execute the following command to upload files to the Linux Cloud Virtual Machine.

    scp <local-file-path> <cloud-server-username>@<cloud-server-public-IP/domain>:<cloud-server-file-path>
    

    For example, to upload a local file /home/lnmp0.4.tar.gz to a corresponding directory under the CentOS system Cloud Virtual Machine with an IP address of 129.20.0.2, execute the following command:

    scp /home/Inmp0.4.tar.gz root@129.20.0.2:/home/Inmp0.4.tar.gz
    
  2. Press Enter, and input the login password to complete the upload.