sudo systemctl status ssh --no-pager

Category: VPS Management

sudo systemctl status ssh --no-pager

Check SSH daemon status and recent log lines

Shows whether the ssh service is running, enabled at boot, and its most recent log entries; --no-pager prints directly instead of opening a pager, which matters over SSH where pagers can hang. A green 'active (running)' line plus 'Loaded: enabled' is the healthy state. Use is-active for a script-friendly yes/no answer.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.