📖 ~1 min read
Table of contents
Symptom & Impact
SSHD may fail to start after package updates, host key permission changes, or stale rc.conf entries. This guide restores reliable remote access on FreeBSD 14.
Environment & Reproduction
service sshd status shows not running, remote connections time out, and boot logs report sshd startup failure.
Root Cause Analysis
Applies to systems using base OpenSSH or pkg-managed OpenSSH with standard /etc/rc.conf startup.
Quick Triage
Console or out-of-band access, root shell, and a backup of /etc/ssh/sshd_config before edits.
Step-by-Step Diagnosis
[image_ref: 0] Run service sshd onestatus; service sshd checkconfig; sshd -t; grep -E “^sshd_enable” /etc/rc.conf; tail -n 100 /var/log/auth.log.

Solution – Primary Fix
[image_ref: 1] Ensure /etc/rc.conf contains sshd_enable=”YES”. Confirm /etc/ssh/sshd_config has valid directives and strict file permissions on host keys.
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
Set startup with sysrc sshd_enable=YES. Validate config with sshd -t. Correct ownership with chown root:wheel /etc/ssh/ssh_host_* and chmod 600 for private keys. Restart using service sshd restart.
Verification & Acceptance Criteria
Confirm service sshd status is running and test localhost login: ssh -o PreferredAuthentications=publickey localhost.
Rollback Plan
Restore prior sshd_config from backup and revert rc.conf changes with sysrc -x sshd_enable only if startup must remain disabled temporarily.
Prevention & Hardening
Keep a known-good sshd_config in version control and test syntax with sshd -t before each deployment.
Related Errors & Cross-Refs
Escalate if daemon starts then exits repeatedly or if authentication logs indicate broader PAM or filesystem integrity issues.
Related tutorial: View the step-by-step tutorial for freebsd-14.
View all freebsd-14 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
FreeBSD Handbook service management, sshd(8), sshd_config(5), and rc.conf(5).
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.