Intermediate Pro Subscription Required

Remote Access in Practice: The Rules Behind SSH, Tunnels, VPNs and What Is Exposed

Learn how remote access is really audited and run, with Python on invented data in your browser. Audit an SSH server configuration with the first-value-wins rule, check authorized_keys for weak, old and shared keys, resolve an ssh config with patterns and jump hosts, validate tunnel specifications, decide where VPN routes send a packet, find sites behind NAT and CGNAT, count concurrent sessions, build Wake-on-LAN magic packets, and review what is exposed to the internet. Then do three of the jobs at a simulated Linux prompt with the real OpenSSH commands: close an open sshd, clean authorized_keys, and fix a jump-host config. The data is generated for you alone, and the functions you write also run on data you cannot see. Every lesson ends with the real commands.

6-8 hours of study Builds toward: Systems Administrator 12 modules

Practise on your own computer

The labs in the lessons run in your browser. To repeat them, go further and try the capstone on your own machine, set up the environment with these free guides:

Remote access is how people look after machines that are not in front of them, and it is one of the most attacked parts of any network. Almost every failure is a small rule that was misread: a setting that sshd ignored, a key that nobody remembered, a config line that won when it should not have, a tunnel open to the whole office, a route that swallowed the home printer, a router that was never reachable from outside, a session left open all day, a door that was opened “for a week”.

This is the nineteenth season of Sabi Logistics’ story, told from the remote side. Chidi, Halima, Ifeoma, Emeka and Musa bring you problems from the day-to-day work. Every case gives you generated configuration files, key lists, routes, sites, sessions or scans, a starter script, and checks that read what your Python leaves behind. The functions that you write are also run on hidden data, with the edges that real systems find first: a setting that appears twice, a key of exactly 2048 bits, a port of 1023, an address of 100.64.0.0, a session of exactly eight hours, a MAC address with a dot in it.

You need nothing installed. Everything uses the Python standard library (json, ipaddress, fnmatch) and runs in your browser (about 10 MB the first time). All machines, keys and people are invented: never use real ones.

What you need first

The case files use Python (it runs in your browser, nothing to install). You should be comfortable with variables, lists, dictionaries, loops and functions. If you are not yet, read the Python primer for the case files first (it takes about an hour), or take the free course Python for Case Files, which teaches the same ideas with nine small hands-on jobs.

Every lab starts with a how to do this lab panel: the steps, what each answer must look like (its shape, never its value), and the first lines of your own files. A wrong answer comes with a hint, and when every answer is right you can see one good way to write it. These labs teach the rules and edge cases behind the real tools, and how to automate an audit with a script. Each lesson ends with a box of the real commands that you would type on a real system.

What you will learn

  1. Read a server configuration: first value wins, defaults, Match blocks and what is really in force.
  2. Look after keys: obsolete types, short keys, no restrictions, old keys and shared keys.
  3. Resolve a client configuration: patterns, exclusions, first value wins and chains of jump hosts.
  4. Validate tunnels: local, remote and SOCKS forwards, bad ports, open binds and ports in use.
  5. Follow the routes: longest prefix, the LAN on a tie, full and split tunnels and overlaps.
  6. Find the NAT: private, shared and unknown translation, and the way in that always works.
  7. Count sessions: the peak by sweep line, parallel logins and sessions that run too long.
  8. Wake machines: the magic packet, MAC styles and the broadcast address.
  9. Review the exposure: what faces the internet, level by level.

The console jobs

The last three lessons are different. They give you a simulated Linux prompt on a generated server or workstation, and you type the real commands (sshd -T, sshd -t, systemctl reload sshd, sed -i, ssh-keygen -lf, ssh -G, grep, cp, printf) exactly as on a real machine. The simulator copies the real traps: the first value wins in sshd_config and in ~/.ssh/config, a Match block is not part of the global settings, a file under /etc needs sudo, a typo stops the reload, and a running sshd keeps its old settings until it is reloaded. The checks read the files and the running sshd, so a right idea done in the wrong place fails. No Python is needed for these three, and nothing typed reaches a real machine.

How it works

Each case is a call from someone at Sabi Logistics, a short brief, a lab with a starter script, a twist and a debrief that says what a senior administrator would do next. Write the Python, run it, press Check my answers, and fix what the checker tells you. When every check passes you get a case reference to submit, and a short write-up to practise explaining your work to the person who asked for it.

The capstone asks you to audit the remote access of a small organisation of your own, with data you are allowed to use, and to say honestly what you found and what you could not see.