SSH Keys and Access Hardening

A trainee logs into this server with a password. Move them to a key you can revoke, then switch passwords off for that account alone, without locking anybody else out.

Skill labintermediate~35 minPro

What you'll do

  • ✓Generate an ed25519 keypair and install the public half for another account
  • ✓Get the ownership and modes on ~/.ssh right the first time
  • ✓Read sshd's effective configuration for a specific user instead of guessing from the file
  • ✓Disable password logins with a Match block scoped to one user, and prove it from a client

Lab outline

  1. 01Keys in, one account at a time
  2. 02Passwords off, for trainee only

Before you start

  • Have used ssh to reach another machine
  • Comfortable with Unix ownership and modes

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Linux System Administration labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

SSH Keys and Access Hardening — Linux lab | Kube Labs