Connecting to the CS 105 Server
C++ works slightly differently on every computer system; even slight changes in versions of the standard library, for example, can lead to big differences in observable behavior.
To make sure that the behavior you see matches what we see when we test your code, you'll be running your code on a remote server. The CS 105 server will have all of the libraries and tools you'll need to complete your assignments this semester.
Set Up Your CS 105 Server Account
If you already have an account on the CS department's main shell server, knuth.cs.hmc.edu, then you also have an account on wilkes.cs.hmc.edu
If not, we have created (or will create) an account for you,
, on the CS 105 server (wilkes.cs.hmc.edu). If you
haven't used your account, there are a few things you'll need to do
to get things set up.
Logging In
You'll need to use a Secure Shell (SSH) client to access wilkes.cs.hmc.edu; there are various options as you've already read.
The first time you log in, you'll use a temporary password that you'll be asked to change. You can click the button below to reveal your temporary password (every student has a unique temporary password, the one below is yours).
Let's assume you're using a terminal or command prompt and have an ssh program installed (if you're using PuTTY or another GUI-based SSH client, the steps will be similar, just using the GUI instead of a command line).
Open a terminal to get a command-line prompt (on your
computer)
and connect to
wilkes.cs.hmc.edu with the command
ssh username @wilkes.cs.hmc.edu
where
First Time Logging In: Pick a New Password
If you used the password revealed above to log in, you should pick a new password and change it now. You can do this by running the command
passwd
It will prompt you for your current password (the temporary one you used to log in) and then ask you to enter your new password twice.
It's very important that you pick a secure password.
Bad actors constantly scan all computers connected to the internet (including both knuth and wilkes.cs.hmc.edu) and try to log in with hundreds or thousands of plausible usernames and passwords. If you pick a weak password then there's a high probability your account will be compromised.
And once hackers have a toehold on a machine, they can use that to scan the inside of the network and potentially access other machines as well, or exploit other vulnerabilities.
So pick a good password!
Log in and Try Some Commands
Run the same ssh command (i.e., ssh ) and log in with your password. You should see a prompt (e.g., ~ SERVER >) that shows that you are currently in your personal home directory (a.k.a. ~ or /home/) and waits for you to type a command to run.
Try these commands:
hostname- Should say that the machine where this command ran is
wilkes. pwd- Should say that you are currently in your personal directory
/home/.username ls- Should show you the contents of your home directory.
You could also try editing a file using emacs. Check out the help page for a quick introduction to using emacs if you haven't used it before.
Finally, you can end your remote session on the CS 105 server by running the command exit.
(When logged in, completion status appears here.)