Uploading files via WinSCP to a Linux CVM from Windows

Last updated: 2020-04-01 11:11:57

    Scenario

    WinSCP is an open-source graphical SFTP client that uses SSH in Windows environment and supports SCP protocol. Its main feature is to copy files securely between the local and remote computers. Compared with uploading codes via FTP, you can directly use your CVM account in WinSCP to access the CVM without any additional configuration.

    Prerequisites

    WinSCP has been downloaded and installed on the local computer (we recommend you download the latest version of WinSCP from the Offical Website.

    Directions

    Logging in to WinSCP

    1. Open WinSCP, and the “WinSCP Login” box pops up.
    2. Configure the following parameters:
      • Protocol: either SFTP or SCP.
      • Host Name: Public IP of the CVM. Log in to CVM Console to view the Public IP of the CVM.
      • Port: 22 by default
      • Password: Password corresponding to CVM username.
      • Username: System username for CVM.
        • SUSE/CentOS/Debian: root
        • Ubuntu:ubuntu
    3. Click Login to enter the “WinSCP” file transfer interface.

    Uploading a file

    1. In the right pane of the “WinSCP” file transfer interface, select the directory where the files are to be stored on the server, such as "/user".
    2. In the left pane of the "WinSCP" file transfer interface, select the directory where the files are stored on the local computer, such as "F:\SSL certificate\ Nginx", and then select the files to be transferred.
    3. In the menu bar of the "WinSCP" file transfer interface, click Upload.
    4. In the "Upload" box that pops up, confirm the files to be uploaded and the remote directories, and click OK to upload the files from the local computer to CVM.

    Downloading a file

    1. In the left pane of the “WinSCP” file transfer interface, select the directory where the files are to be stored on the local computer, such as "F:\SSL certificate \Nginx".
    2. In the right pane of the "WinSCP" file transfer interface, select the directory where the files are stored on the server, such as "/user", and then select the file to be transferred.
    3. In the menu bar of the "WinSCP" file transfer interface, click Download.
    4. In the "Download" box that pops up, confirm the files to be downloaded and the remote directories, and click OK to download the files from the CVM to the local computer.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help