Help Center/ Huawei Cloud Flexus_Huawei Cloud Flexus X Instance/ User Guide/ Logging In to a FlexusX Instance/ Uploading and Downloading Files/ Using WinSCP to Transfer Files Between a Local Windows Computer and a Linux Server
Updated on 2026-07-06 GMT+08:00

Using WinSCP to Transfer Files Between a Local Windows Computer and a Linux Server

Scenarios

WinSCP can be used to securely transfer files between local and remote computers. Compared with FTP, WinSCP allows you to use a username and password to access the server without any additional configuration on the server. To transfer a file from a local Windows computer to a Linux cloud server, WinSCP is commonly used. This section describes how to use WinSCP to transfer files from a local Windows computer to a Linux cloud server (Linux FlexusX instance) running CentOS 7.2.

Prerequisites

  • The cloud server is running.

Solution

  1. Download WinSCP.
  1. Install WinSCP.
  2. Start WinSCP.

    Set parameters as follows:

    • File protocol: Set this to SFTP or SCP.
    • Host name: Enter the EIP bound to the ECS. Log in to the management console to obtain the EIP.
    • Port number: 22 by default.
    • User Name: Enter the username for logging in to the ECS.
      • If the ECS is logged in using an SSH key pair:
        • The username is core for a CoreOS public image.
        • The username is root for a non-CoreOS public image.
      • If the ECS is logged in using a password, the username is root for a public image (including CoreOS).
    • Password: the password set when you purchased the ECS or converted using a key.
  3. Click Login.
  4. Drag a file from the local computer on the left to the remotely logged in ECS on the right to transfer the file.