CertGrid CertGrid
Hands-on Lab·Linux Foundation Certified System Administrator

The ssh server and its configuration

sshd is the service you are connected over, which makes changing it uniquely risky. This guide reads the effective configuration - not the file, which is not the same thing - then breaks it deliberately and shows the check that catches the mistake before a restart could act on it.

Networking Guide 27 of 38 Intermediate

OpenSSH 10.2p1 on Ubuntu 26.04, with a drop-in directory that both cloud-init and this lab write to. The unit is ssh on Debian and Ubuntu and sshd on RHEL - a difference that matters when you restart it.

Ubuntu leads every step; RHEL follows so the difference is visible rather than described.
Server NameIP AddressOSRolesCPURAMHDD
LFCS-A01192.168.0.70Ubuntu 26.04 LTSPrimary host - most guides run only here2 Core4 GB50 GB
LFCS-C01192.168.0.72AlmaLinux 10.2The other distribution - dnf, firewalld and NetworkManager2 Core4 GB50 GB

This guide includes

Use this because sshd is the service you are connected over, which makes changing it unlike changing anything else. This matters because an invalid setting is only discovered when the daemon restarts - and by then you are already locked out.

Before you start

  1. The configuration that is actually in force

  2. A syntax error, caught before it could matter

  3. RHEL's side, and putting the file back

  4. The client side

Official sources