Redirect emails

You won't read them otherwise

If you log into the UNSW Identity Manager site you can set an email address to receive UNSW related emails.

Subscribe to your timetable

Never* miss a class again!

Sign in to myUNSW and select "My Student Profile" from the top bar. From the panel on the left, under "Online Services", click on "Personal Timetable". This will take you through a process to produce a calendar link that you can subscribe to so you don't need to worry about adding all your classes manually - neat!

* Well, never miss it on your calendar.

Finding your class website

Sometimes it can be tricky to find where you course hosts its website. With WebCMS2, WebCMS3, Open Learning, and sometimes websites spun by the lecturers themselves, how are you meant to know where to look? One way which usually works is to access the following link:

www.cse.unsw.edu.au/~csXXXX/

where XXXX is the number following COMP in the course code. COMP1511, for example, can be accessed like so: www.cse.unsw.edu.au/~cs1511/

SSH made easy

Who wants to type all of that in every time?

Alright, so you want to access your CSE account files from home, and using SSH is great for that. So you open a terminal type in

ssh -X [email protected]

then you wait 5 seconds and type in your password. If you haven't seen -X before, it enables X11 forwarding, which allows you to use graphical applications over SSH. To get X11 forwarding on Mac, install XQuartz (be sure to restart your machine after installing! This process works, but after doing it a hundred times, you get sick of it (trust me). So, is there a better way? Why yes, yes there is! We're going to do two things to simplify this process greatly

.ssh

First off, execute the command ls ~/.ssh. If you get something along the lines of:

ls: /Users/user/.ssh: No such file or directory

Then you can run the command mkdir ~/.ssh. This is the default directory that houses configuration details through various files.

SSH config

What we're going to do here is simplify the entire SSH command into ssh cse. That's all you'll need to do to connect to login to a CSE server.

Inside your .ssh directory, create a file called "config", touch config. Open this file in your favourite text editor, and feel free to copy paste the following content there:

Host cse
HostName login.cse.unsw.edu.au

In the first line, the text following Host represents what the name of this host is. This takes the place of the actual HostName, defined on the next line. With just these two lines we can shorten our command to:

ssh -X [email protected]

But lets not stop there! We can add the following to help out as well:

User z5555555
ForwardX11 yes

The User line specifies what user to log in as by default, meaning we can leave out the username. You'll want to change that zID to your actual user login. The last line enables X11 forwarding, which achieves the same result as using the -X argument.

Presto! With this config file we can now simply type in ssh cse to connect to a CSE machine! Now let's go one step further and remove the need for us to always give our password when doing so.

SSH keys

Alright! Now we're going to generate an SSH key for your machine, and register that with the CSE machines so that it knows to trust you connecting to it without a password. To do that, execute:

ssh-keygen

You'll be prompted for various inputs as the command executes, but feel free to just push enter/return at each stage.

Great, now you should have two new files in your .ssh directory, id_rsa and id_rsa.pub. Open id_rsa.pub and copy its contents. ssh into cse (using your password for the last time!) and locate the .ssh directory in ~/.ssh. As before, if it doesn't exist, create the directory with mkdir ~/.ssh. Now you can create a file inside the .ssh directory on the CSE server called "authorized_keys". Paste your public key in here, and voila! Try logging out of the SSH session and logging back in. If all went well, you shouldn't have to enter your password!

Note that each machine you SSH in from needs its own generated key that is listed in the authorized_keys file of the system that you wish to connect to.