You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Uploading or downloading files
Transferring files from local Windows system to Linux instance (WinSCP)
Copy page
Download PDF
Transferring files from local Windows system to Linux instance (WinSCP)
If your local computer is running the Windows operating system, you can use WinSCP to transfer files to a Linux instance.​
About WinSCP​
WinSCP is an open-source graphical SFTP client that uses SSH and runs on the Windows environment. WinSCP also supports the SCP protocol. It can securely copy files between local and remote computers.​
Prerequisites​
  • Local computer:​
  • The Windows operating system is used.​
  • The WinSCP client is downloaded and installed. You can obtain the latest version from the official website.​
  • ECS instance:​
  • The Linux operating system is used.​
  • The instance is in the Running status.​
  • An inbound rule is added to the security group of the instance to allow inbound traffic on port 22. For detailed steps, refer to Changing security group rules.​
Software version​
  • Operating system of the local computer: Windows Server 2019.​
  • Operating system of the ECS instance: CentOS 8.3.​
  • WinSCP version: 5.19.2 (build 11614).​
Procedure​
Upload a file​
  1. Double-click to open WinSCP on your local computer. The "Log in" dialog box is displayed.​
  1. Fill in the relevant information for the new site (ECS instance).​
  • Protocol (optional): Enter SFTP or SCP.​
  • Hostname: Enter the EIP of the ECS instance.​
  • Port: The default value is 22.​
  • Username: The system username of the ECS instance. For Linux systems, the username is root.​
  • Password: The password corresponding to the username of the ECS instance. If you forget your password, reset the password by referring to Resetting login password.​
  1. Click "Log in" to enter the WinSCP file transfer interface. The file directory of the local computer is displayed in the left pane of the interface, while the file directory of the ECS instance is displayed in the right pane.​
  1. In the right pane of the WinSCP file transfer interface, select the directory where you want to store the uploaded files, such as "/root/".​
  • In the left pane of the WinSCP file transfer interface, select the directory containing the files that you want to upload, such as "C:\Users\Administrator\Downloads\", and select a file you want to upload.​
  1. In the left pane of the WinSCP file transfer interface, click the "Upload" button.​
  1. Confirm the file you want to transfer and other related information, and click the "OK" button to upload the file.​
Download a file​
  1. In the left pane of the WinSCP file transfer interface, select the directory where you want to store the downloaded file, such as "C:\Users\Administrator\Downloads\".​
  • In the right pane of the WinSCP file transfer interface, select the directory on the ECS instance from which you want to download a file, such as "/root/". Select the file you want to download.​
  1. In the right pane of the WinSCP file transfer interface, click the "Download" button.​
  1. Confirm the file you want to transfer and other related information, and click the "OK" button to download the file.​
Operation results​
The uploaded/downloaded file is displayed in the specified directory of the right/left pane in the WinSCP file transfer interface.​
Last updated: 2026.06.24 17:17:26