These instructions are taken from the CSLab Support pages: http://www.cs.toronto.edu/support/. Material from several pages has been merged here to describe how to access files from outside the department. This page focuses on Windows instructions. If you have any problems mail dcshelp =AT= cs =dot= toronto =dot= edu (make the appropriate substitutions in the address).
Occasionally you may want or need to bring files from work to home (or wherever) to work on them. One tried and true method is to copy them onto a floppy disk (or USB storage device) and carry the media with you, but sometimes you forget. If all the files are in one directory (a.k.a. folder) at work you can use the ssh tools from PuTTY or another ssh package (see http://www.cs.toronto.edu/support/remote/SSH/index.html) to get them. Suppose your cslab username is "foobar" and you put all the files in the folder "TakeMeHome" in your home directory, but didn't copy them to your floppy. At a command prompt at home you could type:
pscp.exe -r foobar@cs.toronto.edu:TakeMeHome "%USERPROFILE%\My Documents"The whole folder will appear in your "My Documents" folder. You can get files from other users too, if you put the full unix path after the colon in the command. Suppose the user "someone" told you "I've set the file permissions on "File4U.txt" in my home directory so you can read it." You would get the file with the command:
pscp.exe foobar@cs.toronto.edu:/u/someone/File4U.txt "%USERPROFILE%\My Documents"Note the '-r' flag has been left out because it is a file, not a folder. The file appears in your "My Documents" folder.
If you made changes to the files you need to copy them back to work. You can take them back by floppy (or USB), or issue the secure copy command copying the file(s) back:
pscp.exe "%USERPROFILE%\My Documents\ChangedFile.doc" foobar@cs.toronto.edu:Note, the characters in the commands are important. Don't forget options (eg. -r ) or the colon (':') after 'cs.toronto.edu'.
The above method is all well and good if you know the name of the file, or if everything is in one folder, but often you want a visual way to manipulate files, a GUI or Graphical User Interface. I mean of course, the "clicky-draggy" way you do at work. When you work this way you work with the real files, not copies. This of course means you don't need to remember to copy the files back. And if the files you use are shared it's better this way, there's less chance of two people trying to change the same file.
This type of access is restricted to computers that are known to the department. There are too many nasty machines out there that might attempt to break in, so the resources are protected by a firewall. To get past the firewall you need a connetion to the VPN.
The CSLab VPN (Virtual Private Network) is the recommended way for general access to CSLab resources when off-campus. It provides direct access to the whole range of CSLab resources. In other words, your remote (home) machine is treated as if it was on campus. Moreover, Windows, Mac OS X and Linux come with free native VPN-clients that are interoperable with the CSLab VPN, so you don't need to install any extra software.
In order to use the CSLab VPN, however, you must first contact software@cs.toronto and request that a VPN account be created. Note that your VPN password will not be the same as your cslab account password, and cslab will provide you with it.
Note that you might need administrator access to your machine when you set up the VPN connection, depending on if your account is a regular or limited user. You only need to do this once. When you start the "Make new connection" wizard you probably only need this information:
If using Windows XP, select Start | Connect To > CSLab
In Windows 2000 use Start | Dialup and Network settings | CSlab
Enter the username and password provided by cslab and select "Connect".
You should see status windows saying "Connecting..." , "Verifying..." ,
"Registering." followed by an icon appearing in the notification tray,
(the area of the task bar near the clock, by default it's in the bottom
right corner).
Now that you have connected using the VPN, you are past the firewall and can set up access to the files in your home directory. This is called "mapping a drive". To do this in Windows, there are two ways to go about it, using the graphical user interface or at a command prompt. Both do the same thing, use whichever is easier for you.
These sceenshots are from Windows XP. 2000 is very similar, the only difference being "My Computer" is on the desktop
Go to My Computer by clicking on Start > My Computer .
There are a couple of common problems:
Start | Run | command will produce a command prompt. Type:
net use H: \\smb.cs.toronto.edu\{username} /user:{username}
Where "{username}" represents your own username, and "H:" is the drive letter
you want to assign to this mapping. After you press return, you will be prompted
for your cslab password. (Note, this is your "real" password, not the VPN one.)
There are a couple of common problems:
For example if John Doe wanted to use "W" (to stand for for "Work") he would type:
net use W: \\smb.cs.toronto.edu\jdoe /user:jdoe
There may be other network shares that you're permitted to map. Just substitute the name of the resource for your username. For example, if you had access to the recruiting share use \\smb.cs.toronto.edu\recruiting . The resources you use at work, eg Grad Office or Undergraduate shares can be used. The names of the shares are not published. You can tell what they're called by looking when connected at work, or send me email.
When done right click on your network drive. From the drop down menu
select Disconnect
Right click the CSLab VPN status icon in
your notification tray. Select Disconnect