Lab 02 -- Setting up SSH key based access; Git repo setup and usage
This page gives an overview of the lecture and the lab session on Aug 07, 2025. The class ended at 5.00 PM due to another class scheduled in the same room.
Short lecture summary
-
Public key cryptography, One-time pad. Secure shell, ssh keys - creating and managing the keys.
-
Setting up git account and verifying if it works correctly.
-
Guided Bash exercises
Readings
-
The Linux Command Line by William Shotts (Online version)
Read chapters (PDF available here)
- Chapter 6 - Redirection
- Chapter 7 - Seeing the World as the Shell Sees It
- Chapter 8 - Advanced Keyboard Tricks
- Chapter 9 - Permissions
- Chapter 10 - Processes
-
Check the manual pages for
gittutorial
for the basic overview of Git andgittutorial2
for a better understanding of how git internals work.You can see the contents by doing
man gittutorial
orman gittutorial2
in terminal. You can also read online via the following links. -
Dive Into Systems by Suzanne J. Matthews, Tia Newhall, Kevin C. Webb (Online version)
Read chapters
-
In case you are wondering how many of the shell programs got there name, this link tells the history behind it.
Practise
-
Read and practise the wikibook on introductory shell scripting.
-
Read and practise from Chapter 1, 3 and 4 from the Bash Guide
-
Please also try to improve your typing speed. You can practise typing online here. You can also run
gtypist
in the lab machines to improve your typing speed.
Editor
-
Learn and understand how to use Nano.
-
As time progress, you will realise that the need to use a different editor. One such editor which we will be using is
vim
. Typevimtutor
in terminal to learn how to usevim
. If you would like to learn online, here is a cool interactive website. Happy Vimming ! -
Check “Editors (Vim)” from missing lectures for an in-depth understanding. Work out the exercises given at the end.
-
There is another powerful editor called Emacs. You can learn more about it here.
Additional readings
- Bash styling guide
- Editor wars. If you search in Google for “emacs”, it gives a suggestion did you mean “vim”? (and also the other way round !).