All Products
Search
Document Center

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

Last Updated:Dec 19, 2025

WinSCP is an open-source graphical SFTP client for Windows that uses SSH and also supports the SCP protocol. Use WinSCP to securely transfer files between a local computer and a remote server. This topic shows how to connect to a Linux server with WinSCP to upload and download files.

Prerequisites

  • You have downloaded and installed WinSCP. For more information, visit the official WinSCP website.

  • The Simple Application Server (SAS) instance must be Running.

  • Make sure that port 22 is allowed in the SAS firewall. The SAS firewall allows port 22 by default when you create a server. For more information, see Firewall Settings.

    image

Procedure

Step 1: Connect to the server

Connect to the server using a password

  1. Open WinSCP. The Login dialog box appears.

  2. In the Session area, configure the following parameters.

    image

    • File protocol: Select SFTP or SCP.

    • Host name: Enter the public IP address of the SAS instance.

      Note

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

      image

    • Port number: The default value is 22.

    • User name: Enter the username for the SAS instance, such as root.

    • Password: Enter the password for the SAS instance.

      Note

      If you forget the password for your Linux server, you can reset it. For more information, see Set or reset the server password.

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

    If this is your first time logging in, a Warning dialog box appears. Click Accept.

    image

    • ① Local pane: Displays the directories on your local computer.

    • ② Remote pane: Displays the directories on the SAS instance.

Connect to the server using a key pair

  1. To connect to the Linux server using a key pair, create or import a key pair, and then bind it.

    If you have already performed this step, skip it.

  2. Open WinSCP and configure the key pair.

    1. Open WinSCP. The Login dialog box appears. In the Session area, click Advanced....

      image

    2. In the Advanced Site Settings dialog box, choose SSH > Authentication from the left-side navigation pane. In the Private key file section, click ....

      image

    3. Select the server's private key file (in .pem format) that you saved locally, and then click Open.

      If you cannot see the .pem key file, select **All private key files** from the file type drop-down list.All private key files

    4. In the Confirmation dialog box that appears, click OK.

      WinSCP requires key files in the PuTTY format. It automatically converts your .pem key file to the required .ppk format.

    5. After the conversion is successful, click Save. In the Information dialog box that appears, click OK.

      After the configuration is complete, the key file has been converted to the .ppk format, as shown in the following figure.ppk

    6. Click OK.

  3. Connect to the SAS instance.

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

      image

      • File protocol: Select SFTP or SCP.

      • Host name: Enter the public IP address of the SAS instance.

        Note

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

        image

      • Port number: The default value is 22.

      • User name: Enter the username for the SAS instance, such as root.

        Note

        A password is not required when connecting with a key pair.

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

      If this is your first time logging in, a Warning dialog box appears. Click Accept.

      image

      • ① Local pane: Displays the directories on your local computer.

      • ② Remote pane: Displays the directories on the SAS instance.

Step 2: Upload or download files

  • Upload files to the SAS instance

    To upload a file to the SAS instance, drag it from the local pane (left) to the remote pane (right).

    Upload a file

  • Download files to your local computer

    To download a file from the SAS instance, drag it from the remote pane (right) to the local pane (left).

    Download a file

Related documents

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