Using WinSCP to Transfer Files
Scenarios
Use WinSCP to transfer files from a PC to a server.
Prerequisites
Conditions
The Secure File Transfer Protocol (SFTP) service has been enabled on the destination device.
Data
You have obtained the following data:
- You have obtained the IP address of the server to be connected.
- You have obtained the user name and password for logging in to the server to be connected.
Software Tools
WinSCP.exe (third-party free software)
Procedure
- Open the WinSCP folder, and double-click WinSCP.exe.
The WinSCP Login dialog box is displayed, as shown in Figure 8-4.
To change the UI language, click Languages.
- Set the login parameters.
The parameters are described as follows:
- Host name: Enter the IP address of the server to be connected. For example, 192.168.2.10.
- Port number: The default value is 22.
- User name: Enter the username.
- Password: Enter the password.
- Private key file: This parameter is left blank by default. Retain the default value.
- Protocol: Retain the default option SFTP in the File protocol drop-down list, and select Allow SCP fallback.
- Click Login.
The WinSCP file transfer window is displayed.
- If a private key file is not selected at the first login, the warning message "Continue connecting and add host key to cache" is displayed. Click Yes. The WinSCP file transfer window is displayed.
- On Windows 7, C:\Users\Administrator\Documents on the local PC is opened in the left pane, and /root on the server is opened in the right pane by default.
- In the left and right panes, create, delete, or copy folders in specific directories as required.Figure 8-5 WinSCP window