Triangulate a daemon
service sshd status
pgrep -laf sshd
sockstat -4 -6 | grep ssh
tail -n 20 /var/log/auth.log- A service can be enabled but failed, or running but not listening where expected.
- Use multiple signals before changing configuration.
Operate rc.d services, inspect processes and sockets, and use logs as evidence rather than guessing.
service is the front end for rc.d scripts. ps, procstat and sockstat help connect service intent to actual process/socket state.
/var/log contains many base-system logs. Third-party applications may log under /var/log or application-specific paths; consult package documentation and rc scripts.
service sshd status
pgrep -laf sshd
sockstat -4 -6 | grep ssh
tail -n 20 /var/log/auth.logGoal: Check configuration, rc state, process state and socket state for SSH.
sysrc sshd_enable
sshd -tservice sshd status || true
pgrep -laf sshd || truesockstat -4 -6 | grep sshd || true
tail -n 30 /var/log/auth.logProduction diagnosis should connect desired state, process state, network state and logs.
Open each answer only after you have tried to answer the question yourself.
Open sockets and the processes/users associated with them.
It validates SSH configuration syntax and reduces the risk of locking out remote access.
It invokes rc.d service scripts for lifecycle actions.
Progress is saved in this browser immediately. When you sign in to My Learning, it can also sync across devices.
Attempt the core lab and knowledge checks before marking the module complete.