WinSCP is an open-source graphical SSH File Transfer Protocol (SFTP) and Secure Copy Protocol (SCP) client for Windows. It supports copy files between a local computer and a remote computer, and edit files directly. This topic describes how to use WinSCP to connect to a Linux server for uploading or downloading files.
Prerequisites
You have downloaded and installed WinSCP. For more information, see WinSCP official website.
The status of the simple application server is Running.
You have allowed inbound traffic on port
22in the firewall. Port22is enabled by default. For more information, see Firewall settings.
Procedure
Step 1: Connect to the server
Connect to the server using a password
Start WinSCP. A Login dialog box will appear.
In Session, configure the following parameters.

For File protocol, select SFTP or SCP.
Host name: The public IP address of the simple application server.
NotePort Number: By default 22.
User name: Enter the username for the Simple Application Server, such as root.
Password: Enter the password for the user.
NoteIf you forget the password of the Linux server, reset the password. For more information, see Set or reset the server password.
Click Login to open the WinSCP file transfer interface.
When you log on for the first time, a Warning will appear. Click Accept(A).

The interface consists of the following sections:
①: The local section. It displays the directory information of the local host.
②: The remote section. It displays the directory information of the Simple Application Server.
Connect to the server using a key pair
Create or import a key pair for the Linux server, then bind a key pair to the simple application server.
Skip this step if you have bound a key pair.
Open WinSCP and configure the key pair.
Start WinSCP, go to Login. In the Session section, click Advanced....

In the left-side navigation pane of the Advanced Site Settings, choose . Then, for Private key file, click ....

Select the server key file in .pem format from your local computer. Then click Open.
If the .pem key file is not visible, select All private key files from the file type drop-down list.

In the Confirm dialog box, click OK.
WinSCP supports only key files in the PuTTY format. After you click OK, WinSCP automatically converts the .pem key file to the PuTTY format.
Click Save. In the Information dialog box, click OK.
After you complete the settings, the key file is saved in the .ppk format.

Click OK.
Connect to the Simple Application Server.
In the Login dialog box, configure the following parameters in the Session section.

File Protocol: Select SFTP or SCP.
Host name: The public IP address of the simple application server.
NotePort number: By default, 22.
User name: The username for the server. For example, root.
NoteIf you use a key pair to connect to the server, you do not need to set a password.
Click Login to open the WinSCP file transfer interface.
When you log on for the first time, a Warning will appear. Click Accept(A).

The interface consists of the following sections:
①: The local section. It displays the directory information of the local host.
②: The remote section. It displays the directory information of the Simple Application Server.
Step 2: Upload or download files
Upload files to the server
Drag files from the left pane to a directory to the right pane. You can upload the files to the Simple Application Server.

Download files to your computer
Drag files from a directory in the right pane to the left pane. You can download the files to your computer.

References
If you cannot connect to the server remotely, see Remote connection FAQ for troubleshooting information.
