Working between PC Windows and Unix machines

Mac Tools ] machines  ] PuTTY ] Editors ] Makefiles ] Bash Shell ] Lab Submission ][Java API]

Getting and Using WinSCP

First, there is a tool on campus Windows machines (or can be downloaded ) the icon looks like

Login

To open a session, double click on the icon and then you need to tell it what Unix machine you are connecting to.
In the example, we see ect-unix.ecst.csuchico.edu - this is a good choice to be safe since ect-unix.ecst.csuchico.edu should always work as the default server.
Do not save your password unless you are on a machine that only you have access to.

If someone else already saved their information, WinSCP may open up looking like

In this case, simply choose New and you will get the original window above

The tool will open up a window with two sides. On the left side is access to the machine you are currently on.
On the right side is the machine you are connected to. (If it does not open showing the directories of both machines, choose Options | Environment | Interface then
Norton Commander. The illustrations are with that interface.)

Using the mouse or using the icons or using the F commands, you can edit files and/or move or copy things from one to the other machine

Transfering files (secure FTP) is easy; you simple "drag" a file from on side to the other

Work on Remote Machine (like ssh/telnet): Commands, Edits, etc.

To edit the file index.html in the directory below, choose it and then right click and choose edit:

It opens a page that you can edit like any other page in Windows. (You can also use the F4 command or the Files menu bar item to choose edit.)

Note the top left icons. If you scan your mouse over the icons it says what they do.
The leftmost one exits the editor. The one next to it that looks like a floppy disk will save the edited page (after it has been saved it becomes a grey square - the floppy showing must mean that changes have been made since the last save).
Make sure to save before exiting or your edits will be lost.

To create a new file, first get into the directory that you want to place the file, then under the Files menu bar item, choose edit new file.
On newer versions, you might see the menu on the right: Choose New then File

It will then prompt you for a name for the new file and open a window for you to start writing the file.

File Transfer

I made these pictures of using WinSCP on my Windows machine and then had to move them to Unix so I could make this web page.
See the files UnixCommands.gif, WinSCP.gif, WinSCPedit.gif on the left window? I copied them to the UNIX machine by dragging them (click and hold mouse down then slide to other side)
We used to use FTP to do this. This tool makes it quite easy and safe.

You can also do UNIX commands (ssh) from this tool. In the next two pictures, I show two different ways of how to make a new directory.

First, you can open a command prompt on the UNIX machine:

Note that it opens into the directory that you are in. Then give your UNIX command (command cannot require user-input)

An alternate way to do the same command I just did is to use the F commands on the WinSCP window. First click on the side that you want to add the directory, the choose F7

This tool is very nice and saves you from needing both FTP and puTTY or telnet. It also saves you from learning a new editor.

Good luck.

Oh. To exit the tool, look at the bottom right choice: F10 Quit