CS 3330: Tip 1: Using SSH

This page does not represent the most current semester of this course; it is present merely as an archive.

Having trouble with your machine? Use SSH to complete the assignment.

Windows

  1. Download PuTTY (get the putty.exe file)

  2. Run the putty.exe

  3. In the "Host name" field type labunix01.cs.virginia.edu, labunix02.cs.virginia.edu, or labunix03.cs.virginia.edu (it doesn't matter which one)

  4. When prompted, give your lab account username and password (you won't see the password as you type)

At the end of this you will have a terminal running on a lab machine. You won't be able to open windows (try nano, emacs or vim if you need an editor) but you can use cd, gcc, ./a.out, ./driver.pl, and so on.

Windows is pretty nerfed when it comes to open-source tools. You can try the pscp.exe or psftp.exe from the PuTTY site, but results vary.

Mac, Linux, FreeBSD, OpenBSD, Haiku, etc.

ssh, scp, sftp, rsync, and the like are installed by default.

Working on lab machines remotely

  1. Open a terminal

  2. Type ssh mst3k@labunix##.cs.virginia.edu where ## is 01, 02, or 03 (it doesn't matter which one) and mst3k is your computing ID.

  3. Type your lab password (you won't see it as you type)

At the end of this you will have a terminal running on a lab machine. You won't be able to open windows (try nano, emacs or vim if you need an editor) but you can use cd, gcc, ./a.out, ./driver.pl, and so on.

Files to-and-from lab machines

  1. Open a terminal

  2. cd to the directory you want to share

  3. To send a single file:

    scp localFile.c mst3k@labunix##.cs.virginia.edu:~/remote/path/

    To retrieve a single file:

    scp mst3k@labunix##.cs.virginia.edu:~/remote/path/filename.c ./

    Note those are tildes ~ not hyphens -; the tilde stands for "my home directory on that machine".

For more complicated file moves, try sftp or rsync. Learn more with man sftp or man rsync.

Copyright © 2015 by Luther Tychonievich. All rights reserved.
Last updated 2015-01-13 13:52 -0500