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 upload files to or download files from a local Windows computer to a Linux cloud server (Linux FlexusL instance) running CentOS 7.2.
Prerequisites
- The cloud server is running.
- Port 22 has been enabled in the inbound direction of the security group associated with the cloud server. For details, see Configuring Security Group Rules for a FlexusL Instance.
Procedure
- Download and install the WinSCP client on your local Windows computer. For details, see Downloading WinSCP.
- Install WinSCP as instructed.
- Start WinSCP.
Table 1 Parameters Parameter
Description
File protocol
Select SFTP or SCP.
Host name
Enter the EIP of the cloud server. Log in to the management console to obtain the EIP.
Port number
The default value is 22.
User name
Enter the username for logging in to the cloud server.
- When you log in to the cloud server using an SSH key pair:
- If the public image is CoreOS, the username is core.
- If the public image is not CoreOS, the username is root.
- When you log in to the cloud server using a password, the username for public images (including CoreOS) is root.
Password
Enter the password set for the cloud server or the password converted from the key pair.
- When you log in to the cloud server using an SSH key pair:
- Click Login.
- Drag a file from the local computer on the left to the remote cloud server on the right to upload the file.
You can also drag files from the cloud server to the local computer on the left to download the files to the local computer.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
