GrepBoard/Manuals
605 manuals ·

Security 11

  1. Check sshd_config with sshd -t before you reload

    Catch sshd_config typos with sshd -t before you reload. Covers real error messages, exit codes, Match block checks, and -T for the effective values.

    Ubuntu 24.04.5 · OpenSSH 9.6p1 (openssh-server 1:9.6p1-3ubuntu13.20)
  2. Test the fail2ban sshd filter with fail2ban-regex

    Count how many auth log lines the sshd filter catches before you enable a jail, then check the missed lines and how each mode changes the result.

    Ubuntu 24.04 · fail2ban 1.0.2 (package unpacked, only fail2ban-regex run)
  3. Find setuid files and file capabilities: why ping has no setuid

    List setuid binaries with find -perm -4000 and file capabilities with getcap -r /. Ubuntu 24.04 vs Rocky 9, and two ways ping works without setuid.

    Ubuntu 24.04.5, Rocky Linux 9 (Docker) · 2026-10
  4. SSH "REMOTE HOST IDENTIFICATION HAS CHANGED": verify, then fix

    SSH "REMOTE HOST IDENTIFICATION HAS CHANGED": the host key differs from known_hosts. Verify the fingerprint out of band, then run ssh-keygen -R.

    Ubuntu 24.04 (Docker) · OpenSSH 9.6p1 · 2026-10
  5. Fix SSH "UNPROTECTED PRIVATE KEY FILE" (permissions 0644)

    SSH "UNPROTECTED PRIVATE KEY FILE" (0644 too open) means others can read your key, so ssh ignores it. Run chmod 600, or copy the key if you cannot chmod it.

    Ubuntu 24.04 (Docker) · OpenSSH 9.6p1 · 2026-10
  6. Verify installed files against packages: debsums and rpm -V

    Check packaged files with debsums or dpkg --verify on Ubuntu and rpm -V on Rocky 9. A changed binary, config file and deleted file show what each reports.

    Ubuntu 24.04 · debsums 3.0.2.1 · Rocky Linux 9 · rpm 4.16.1.3 (Docker) · 2026-10
  7. systemd-analyze security from 9.4 to 1.9: what breaks

    Harden a systemd unit in 12 steps while scoring it with systemd-analyze security --offline. From 9.4 down to 1.9, see where writes and chown started to fail.

    Ubuntu 24.04 · systemd 255 · 2026-10
  8. How to check unattended-upgrades applied updates (Ubuntu 24.04)

    After a USN is published, confirm the fix landed using the fixed version, apt-cache policy, a dry run and the logs, including a dry-run message that misleads.

    Ubuntu 24.04 (Docker) · unattended-upgrades 2.9.1+nmu4ubuntu1 · 2026-10
  9. Ubuntu 24.04 SSH port won't change (ssh.socket)

    Port is set in sshd_config and ssh is restarted, but port 22 still listens. ssh.socket owns the port. How to check, and the order that keeps you connected.

    Ubuntu 24.04.5 · openssh-server 1:9.6p1-3ubuntu13.20 · systemd 255 (read-only checks + official docs)
  10. Allow SSH in ufw before you enable the firewall

    Running ufw enable first over SSH can lock you out. Add the SSH rule, check pending rules, enable, read status verbose, and recover from a lockout.

    Ubuntu 24.04 · based on the official ufw docs · 2026-10
  11. Find why SSH says Permission denied (publickey)

    Read ssh -v to see which key was offered, then use the sshd log lines (Authentication refused, Failed publickey) to find permission, user or key-line problems.

    Ubuntu 24.04 · OpenSSH 9.6p1 (reproduced with a separate sshd)