Skip to content

Securing SSH

Ethan W edited this page Sep 17, 2026 · 8 revisions

SSH file

sudo nano /etc/ssh/sshd_config

Disabling root SSH access

Uncomment what you want to change, and always make a backup file
image

Check Root override file

image

remove the override file (01-permitrootlogin.conf)

sudo rm -f /etc/ssh/sshd_config.d/01-permitrootlogin.conf
sudo systemctl restart sshd

note. Restarting the sshd service will apply the changes made


Verify

image
If you get access denied with the correct passwd then the root will not be able to SSH (this can also be done through PowerShell)
To view specifically SSH logs, use 'journalctl -u sshd' to query the service

Lab Environment

  • Proxmox
  • Windows
  • Active Directory
  • Linux
  • Pfsense

Lab01 — FW & Windows Client

Pfsense Configuration

Firewall


wks01 Configuration

Network Configuration

User & Group Configuration

Tech Terms


Lab 02 | DNS + ADDS Role

ad01 Configuration

DNS Manager

Joining Domains



Lab 03 | Linux (Rocky)

dhcp01 Configuration

Users & Groups

Extra Linux Commands


Lab 4 | DHCP (Rocky Linux)

dhcp01 Configuration

PuTTY + Enhanced Explorer security configuration (IE ESC)

Configure DHCP & Firewall Services

User & Group File Permissions

Securing SSH

DORA (DHCP Handshake)


Lab 5 | ADDS and Group Policy

ad01 Configuration

OU (Organizational Unit)

Group Policy Management


Lab 6 | Assessment

Environment Configurations


Lab 7 | Server Core / Remote Administrator Tools

FS01 - Windows Core


Clone this wiki locally