OpenSSH Server Admin Cheat Sheet/Test config for specific user/addr

Evaluate Match blocks for a chosen user and source address.

Section: sshd Basics

Test config for specific user/addr

bash
bash
sshd -T -C user=deploy,host=server.example.com,addr=203.0.113.10
Explanation

Evaluate Match blocks for a chosen user and source address.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing sshd Basics
Test sshd configuration
Validate sshd_config syntax before restart.
OpenIn sheetbashsame section
Print effective sshd config
Dump effective server configuration values.
OpenIn sheetbashsame section
Restart sshd with systemd
Restart the SSH daemon on systemd-based Linux hosts.
OpenIn sheetbashsame section
Show sshd status
Inspect the daemon status on systemd-based hosts.
OpenIn sheetbashsame section
View sshd logs
Follow SSH daemon logs via journald.
OpenIn sheetbashsame section
Run sshd in debug foreground mode
Start a test daemon without detaching, useful for troubleshooting.
OpenIn sheetbashsame section