If you are using a Windows computer, you can use WinSCP to connect to a Linux-based simple application server and manage files on the server. This topic describes how to use WinSCP to connect to a Linux server.
Prerequisites
WinSCP is downloaded and installed. For more information about how to download and install WinSCP, visit the official WinSCP website.
Background information
This topic describes two methods used to connect to a Linux server by using WinSCP. You can choose a method to connect to the Linux server based on the actual conditions.
By default, Secure Shell (SSH) is not installed on Windows-based simple application servers. Therefore, WinSCP cannot be used to connect to Windows servers. To manage files on a Windows server, use Remote Desktop Connection (RDC) to connect to the server. For more information, see Connect to a Windows server.
Use a key pair to connect to a Linux server
- Create a key pair for the Linux server to which you want to connect. For more information, see Create a key pair.Note If a key pair is already created for the Linux server, skip this step.
- Start WinSCP and configure the key pair.
- Connect to the Linux server.
Use a password to connect to a Linux server
- Set a password for the user of the Linux server to which you want to connect. For more information, see Manage the password of a server. If a password is already set for the user of the Linux server, skip this step.
- Start WinSCP. The Login dialog box appears. If the Login dialog box does not appear, you can choose in the top-navigation bar of the WinSCP window to open the dialog box.
- In the Session section, configure parameters, as shown in the following figure.
Configure the following parameters:
- File protocol: Select SCP from the drop-down list.
- Host name: Enter the public IP address of the Linux server.
- Port number: Enter 22.
- User name and Password: Enter the username and password of the simple application server.
- Click Login. If the cache does not contain the host key of the server, the Warning dialog box appears. You can select Yes, No, or Cancel. In this example, select Yes.After you are logged on to WinSCP, you can upload, download, create, or delete files. The following figure shows the WinSCP window.
The workspace consists of the following sections:
- ①: a section for information about the local host, in which directory information of the local host is shown.
- ②: a section for information about the server, in which directory information of the Linux server is shown.