Winscp

WinSCP is a popular free FTP program for Windows. An FTP program lets you transfer files between your computer and your Web server.

WinSCP is a popular free SFTP and FTP client for Windows, a powerful file manager that will improve your productivity. It offers an easy to use GUI to copy files between a local and remote computer using multiple protocols: Amazon S3, FTP, FTPS, SCP, SFTP or WebDAV. WinSCP before 5.17.10 allows remote attackers to execute arbitrary programs when the URL handler encounters a crafted URL that loads session settings. (For example, this is exploitable in a default installation in which WinSCP is the handler for sftp:// URLs.) View Analysis Description. The objective of this tutorial is to enable the user to transfer data from Windows to Ubuntu using WinSCP and vice-versa. In this tutorial, we will use Windows 10 and Ubuntu 16.04, but the same tutorial will work for other versions of Windows and Ubuntu.

In this introductory tutorial, you’ll learn how to use WinSCP to upload your website’s files to your server.

This tutorial assumes you’ve already downloaded and installed WinSCP. It also assumes you’re using WinSCP with the “Commander” interface, rather than the “Explorer” interface. (To change interfaces in WinSCP, choose Options > Preferences, then click the Interface option and select either Commander or Explorer.)

Connecting to your Web server

Winscp Show Hidden Files

When you start WinSCP, You’ll see the WinSCP Login dialog box (shown below). This is where you enter information about the Web server you want to connect to.

If you’re not sure of your Web server’s FTP details, ask your hosting company.

Enter your server details in the WinSCP Login dialog, then click Login to connect to the server.

Enter the following information in the dialog:

  • Your Web server’s name in the Host name box
  • Your login name in the User name box
  • Your login password in the Password box
  • Your protocol information in the Protocol boxes. For the sake of this tutorial, we’ll assume you’re using plain, simple FTP, so choose FTP and No encryption.

Once you’ve entered your Web server details, click Login to connect to your server.

You may be behind a proxy server, especially if you’re using WinSCP from work. If so, you will need to get your proxy server details from your IT support people. Then, in the WinSCP Login dialog, select the Advanced options checkbox, then click the Proxy option and enter your proxy server information.

Your home directory

Once logged in, you will be taken to your home directory on your Web server, which you’ll see in the right hand pane in WinSCP. This directory contains (amongst other things) your website directory, which is where you need to upload all your files:

Winscp
Your home directory on the server contains your website directory (shown), which is where the website’s files go.

Double-click your website directory — mysite.com in the above screenshot — to browse its contents.

Your document root

The top level folder of your website is often called the document root. This is where you will place your first website files. The document root is often named htdocs or public_html, and is usually inside your website directory.

Your website directory contains htdocs, your document root directory — the top level of your website.

If you like, you can double-click your document root folder — htdocs in the above screenshot — to browse its contents.

Uploading a Web page

Once you’ve found your document root, you’re now ready to upload your website. Here, you’re going to upload your first page, index.html, which should be the name of the main page of your website.

Use the left-hand pane in WinSCP to browse to your website folder on your hard disk. You can then upload your index.html file to the server by dragging it from the left-hand pane to the htdocs folder in the right-hand pane:

Upload the website’s index page file by dragging it from the left-hand pane to the htdocs folder in the right-hand pane.

Once you’ve dragged your file, you may see a Copy dialog appear. Just click the Copy button in the dialog to continue. You can also check the Do not show this dialog again checkbox in the dialog, if it annoys you.

Once WinSCP has finished uploading the file, double-click your document root folder (e.g. htdocs) in the right-hand pane to view its contents. You should see a copy of your file. Congratulations — you’ve just uploaded your Web page!

The website’s index page is now uploaded to the Web server.

If you now open up a Web browser and go to your website’s URL, you should see your Web page on the Internet. Well done! 🙂

You can also upload files and folders by dragging them straight from Windows Explorer into the right-hand pane in WinSCP.

Other stuff

Downloading

If you need to download a Web page from your site again (for example, you lost the original on your PC), simply drag and drop your page the other way, from the right-hand pane to the left-hand pane (or to Windows Explorer).

Disconnecting

After you’ve finished uploading stuff, choose Session > Disconnect to disconnect from your Web server. Or simply close down WinSCP.

Deleting files

To delete a file that you have uploaded to your server, click on the file in the right-hand pane to select it, and press the Delete key on your keyboard.

Doing other stuff to files

Right-click on a file in the right-hand pane and you will see all sorts of things you can do to it, such as renaming it and editing it.

If you need to change permissions on a file then right-click it and choose Properties from the pop-up menu.

This basic WinSCP tutorial has shown you how to upload your website files with WinSCP. To learn more about about using WinSCP, take a look at the WinSCP Guides. Have fun!

Overview

This document describes how to use the version of WinSCP to copy or transfer, files from one computer to another over the Internet. WinSCP uses sftp (secure file transfer protocol).

Obtaining the Software

Members of the U-M community can download WinSCP (bundled with PuTTY).

Connecting to AFS and Other U-M Host Computers

ITS provides a number of shortcuts to make it easier for you to open secure file-transfer connections to popular host computers at U-M. (A 'host computer' is one that allows other computers to connect to it; it 'hosts' connections from other computers.) Here's how to use the shortcuts.

To open a file transfer connection using a shortcut, double-click the shortcut's icon. For example, to connect to your ITS-provided AFS home directory, double-click ITS Home Directory (file transfer). (You might have to single-click some icons to see their full names.)

  1. Make sure you have a working Internet connection. If you use a modem, establish a dial-up connection. If you use Ethernet, your connection should already be available.

  2. The UM Internet Access Kit folder is included in the download of WinSCP and PuTTY. The shortcuts should be inside this folder.

  3. Double-click ITS Home Directory (file transfer) to open a connection you can use to transfer files to and from your home directory. WinSCP opens.

  4. When you first attempt to connect to a new server, you'll get a warning message. Click Yes to continue.

  5. In the Username: text box, type your uniqname and click OK to continue.

  6. In the Password: box, type your password and click OK to continue. For your AFS Home Directory, this password is your UMICH (Level-1) password.

  7. A window showing your local computer on the left and your home directory on the right opens. You are now ready to transfer files.

Winscp

Transferring Files

Transfer files by dragging their icons from one side of the window to the other . You can copy files from your local computer to your AFS home directory and vice versa.

Deleting a File From Your Home Directory

  1. On the home directory (remote) side of your window, click a file to select it.

  2. From the Files menu, select Delete.

  3. In the Confirm dialog box, click OK. The file is deleted.

Renaming a File in Your Home Directory

  1. On the home directory (remote) side of your window, click a file to select it.

  2. From the Files menu, select Rename.

  3. The file name becomes editable. Make whatever changes to the file name you wish.

  4. Click anywhere outside the file name to save the changes.

Closing Your Connection

Winscp Download Windows 10

  1. In the top right corner of the WinSCP file transfer window, click the red X.

  2. In the Confirm dialog box, click OK. This closes your connection to the host computer, and closes the window.

Connecting to Other Computers for File Transfer

Winscp
  1. Open WinSCP for file transfer by double-clicking the WinSCP icon. A WinSCP Login dialog box opens.

  2. In the WinSCP Login dialog box:

    1. In the Host Name box, type the host computer's address.

    2. In the User Name box, type your user name for the computer to which you are connecting. (For most U-M computers, use your uniqname.)

    3. In the Password box, type your password. (For most U-M computers, use your UMICH (Level-1) password.

    4. Click Login.

      CAUTION! Use your uniqname and UMICH (Level-1) password with WinSCP only when connecting to U-M hosts. Do not use them with non-U-M hosts. Some host computers at U-M—such as those run by individual schools, colleges, or departments—may require different user IDs and passwords.

  3. When you first attempt to connect to a new server, you'll get a warning message. Click Yes to continue.