How Can I Use WinSCP to Transfer Files from a Local Windows Computer to a Linux ECS?
Scenarios
WinSCP can be used to securely copy-paste files across local and remote computers. Compared with FTP, WinSCP allows you to use a username and password to access the destination server without any additional configuration on the server.
To transfer a file from a local Windows computer to a Linux ECS, WinSCP is commonly used. This section describes how to transfer files from a local Windows computer to a Linux ECS using WinSCP. In this example, the ECS running CentOS 7.2 is used as an example.
Prerequisites
- The target ECS is running.
- An EIP has been bound to the ECS. For details, see Binding an EIP.
- Access to port 22 is allowed in the inbound direction of the security group to which the ECS belongs. For details, see Configuring Security Group Rules.
Solution
- Install WinSCP.
- 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.
- If the ECS is logged in using an SSH key pair,
- Password: the password set when you purchased the ECS or converted using a key.
- Click Login.
- Drag a file from the local computer on the left to the remotely logged in ECS on the right to transfer the file.
File Upload/Data Transfer FAQs
- How Do I Upload Files to My ECS?
- How Can I Use WinSCP to Transfer Files from a Local Windows Computer to a Linux ECS?
- How Can I Use SCP to Transfer Files Between a Local Linux Computer and a Linux ECS?
- How Can I Use SFTP to Transfer Files Between a Local Linux Computer and a Linux ECS?
- How Can I Use FTP to Transfer Files from a Local Windows Computer to a Linux ECS?
- How Can I Use FTP to Transfer Files Between a Local Linux Computer and a Linux ECS?
- What Should I Do If the Connection Between the Client and the Server Times Out When I Upload a File Using FTP?
- What Should I Do If Writing Data Failed When I Upload a File Using FTP?
- Why Am I Seeing an FTP Folder Error When I Open a Folder on an FTP Server?
- Why Do I Fail to Connect to a Linux ECS Using WinSCP?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more