Using WinScp on the CNS System (Wright Hall)

Occasionally you may need to copy or transfer a file from a "local" computer to a "remote" computer. In the old days we used ftp to do this. With so many people on the Internet you should now use secure file transfer or secure copy. One relatively simple application to accomplish that is  WinSCP. This software is available on the CNS network and you can also download it from the UNI software downloadsite. The discussion below addresses the steps you use to transfer a file from a floppy or zip disk in a computer in the CNS lab or from the hard drive on that system (e.g., your Z: drive) to your home directory on the CNS server. The tasks will be very similar if you are using WinSCP on your home computer.
  1. Start the software
    On the CNS system you click on the start menu and find the application. It will be at
    Start | All Programs | Internet | Secure File Transfer (WinSCP) | WinSCP

    A window divided in two (right and left) should appear. On the left will be a hierarcy of choices and on the right a set of stored session names.

  2. Set the interface preference to Explorer-like
    Click on the preference option in the left half of the window. You will have two choices— Norton Commander  and  Explorer like.  Choose  Explorer like.  After doing so, click on the stored sessions choice on the left half of the window. The list of stored sessions should reappear.

  3. Launch a session (or create and launch a session)
    You will want to select one of the stored Cowboy sessions. It should not matter which one, but some servers will be busy and you may not get through. Just select a different one by double clicking on the name.

    A window should appear with the name of the server already entered and a place for you to enter your username and password. Do so. After typing your username and password in the appropriate boxes you merely press the enter/return key or click on the  Login  button. The first time you use a server you may be notifed that the server cannot be authenticated and asked if you wish to continue. Click  Yes.  A window should appear and it should contain the files and directories in the "remote" directory. The window should be titled Cowboy.cns.uni.edu (bebop) - WinSCP. (Instead of bebop, you might get faye or jet or julia or spike depending on which session you used. In the discussion below this window is referred to as the remote/WinSCP window.

    If you are using WinSCP on your home machine you probably will not have any stored sessions. You can define your own by clicking on sessions in the left half of the screen and the New button in right half of the screen. A window will appear in which you can type the hostname, e.g., bebop.cns.uni.edu (or faye.cns.uni.edu, jet.cns.uni.edu, julia.cns.uni.edu, or spike.cns.uni.edu). Make sure the port selected is 22 and then click on the Save button. After that you should be able to double click on this newly stored session and enter your username and password as indicated above.

  4. Bring up a window for the "local" directory
    The "local" directory is whatever is on your My Computer. From the start menu select My Computer. A window will appear and from it you can access your floppy or zip drive or a flash disk or your hard drive (your Z: drive on the CNS system).

  5. Find the appropriate directories
    Set the remote or WinSCP window to show the directory you wish to copy a file into. If you need to create the directory first, set the window to show the directory in which you wish the new directory to appear and then click on the Create directory icon or menu, give the directory a name, and set the window to show that directory. Then find the directory in the local window that contains the file you wish to transfer.

  6. Drag and drop the file from your local window to your remote/WinSCP window. When you do so, a window will appear with the file name, e.g., user/east/web/"." (actually the quotes are little tiny x's or something) and allow you the opportunity to change the name by substituting another file name for the period and x's. If you want the file to have the same name as on the local machine change nothing. When you have the name you want click on the Copy button.

  7. If you wish, set the file permissions
    WinSCP allows you to check and set permissions. To do so, highlight the file in the remote/WinSCP window and click on the Properties icon/menu-command. Then set the permissions. Numerically, files should have 644 as the permission value and directories/folders should have 711. Enter the appropriate value and note what permissions actually get set.

  8. Quit the application
    Click on the Window's X button or choose Quit from the file menu. The remote/WinSCP window should disappear.