All Products
Search
Document Center

Simple Application Server:Use WinSCP to transfer files between a local Windows system and a Linux server

Last Updated:Aug 07, 2025

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 22 in the firewall. Port 22 is enabled by default. For more information, see Firewall settings.

    image

Procedure

Step 1: Connect to the server

Connect to the server using a password

  1. Start WinSCP. A Login dialog box will appear.

  2. In Session, configure the following parameters.

    image

    • For File protocol, select SFTP or SCP.

    • Host name: The public IP address of the simple application server.

      Note

      View the public IP address on the server card in the Simple Application Server console.

      image

    • Port Number: By default 22.

    • User name: Enter the username for the Simple Application Server, such as root.

    • Password: Enter the password for the user.

      Note

      If you forget the password of the Linux server, reset the password. For more information, see Set or reset the server password.

  3. Click Login to open the WinSCP file transfer interface.

    When you log on for the first time, a Warning will appear. Click Accept(A).

    image

    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

  1. 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.

  2. Open WinSCP and configure the key pair.

    1. Start WinSCP, go to Login. In the Session section, click Advanced....

      image

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

      image

    3. 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.所有私钥文件

    4. 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.

    5. Click Save. In the Information dialog box, click OK.

      After you complete the settings, the key file is saved in the .ppk format.ppk

    6. Click OK.

  3. Connect to the Simple Application Server.

    1. In the Login dialog box, configure the following parameters in the Session section.

      image

      • File Protocol: Select SFTP or SCP.

      • Host name: The public IP address of the simple application server.

        Note

        View the public IP address on the server card in the Simple Application Server console.

        image

      • Port number: By default, 22.

      • User name: The username for the server. For example, root.

        Note

        If you use a key pair to connect to the server, you do not need to set a password.

    2. Click Login to open the WinSCP file transfer interface.

      When you log on for the first time, a Warning will appear. Click Accept(A).

      image

      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.

    2025-01-08_14-34-26 (2)

  • 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.

    2025-01-08_14-38-05 (1)

References

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