π ~1 min read
Table of contents
Symptom & Impact
On FreeBSD 13, sshd may fail to come up at boot when rc.conf flags are missing or host keys are invalid.
Environment & Reproduction
Remote SSH connections time out, and service status shows sshd not running after restart or reboot.
Root Cause Analysis
Common causes include sshd_enable not set in /etc/rc.conf, malformed sshd_config, or stale key permissions.
Quick Triage
Run service sshd onestatus, service sshd checkconfig, and tail -n 100 /var/log/auth.log to isolate the fault.
Step-by-Step Diagnosis
Confirm current shell diagnostics and baseline state before edits. image_ref=0

Solution – Primary Fix
Set sysrc sshd_enable=”YES”, validate with service sshd checkconfig, then service sshd restart and review logs. image_ref=1
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Use service sshd start|stop|restart and ensure /etc/rc.conf keeps sshd_enable=”YES” for persistent startup.
Verification & Acceptance Criteria
Edit /etc/ssh/sshd_config carefully, keep PermitRootLogin and PasswordAuthentication aligned with policy, then recheck.
Rollback Plan
If pf is enabled, verify pass rules for tcp port 22 and reload with pfctl -f /etc/pf.conf.
Prevention & Hardening
Run sockstat -4 -6 -l | grep :22 and test ssh localhost plus a remote login from another host.
Related Errors & Cross-Refs
Track auth.log failures with periodic checks and include service sshd onestatus in routine health scripts.
Related tutorial: View the step-by-step tutorial for freebsd-13.
View all freebsd-13 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Consult man sshd, man rc.conf, and the FreeBSD Handbook service management section.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.