Run, secure and troubleshoot the SSH daemon that gives you remote shell access to Linux systems. 20.06.2026 | reading time: 3 min sshd is the OpenSSH server daemon that accepts incoming secure shell connections and runs on nearly every Linux host; learn what it does and how to control it quickly. Start, check and test A short hands-on: enable and start the daemon, check its status and attempt a connection to confirm functionality. ```sudo systemctl enable --now sshd sudo systemctl status sshd ● sshd.service - OpenSSH Daemon Active: active (running) since Mon 2026-06-20 10:12:34 UTC; 1min ago ss -tnlp | grep sshd LISTEN 0 128 0.0.0.0:22 *:* users:("sshd",pid=1234,fd=3) # From a client ssh -v user@server.example.local OpenSSH_8.9, debug1: Connecting to server.example.local port 22." Hardening and configuration tips Edit `/etc/ssh/sshd_config` to harden access: set `PermitRootLogin no`, disable `PasswordAuthentication` when using keys, restrict `AllowUsers` or `AllowGroups`, change `Port` if required and use `Match` blocks for per-user rules; always test changes with `sshd -t` before reloading the daemon and check logs with `journalctl -u sshd` or the system auth log. Useful modes and common use cases Beyond interactive shells, `sshd` enables secure file transfer (SFTP), scp, reverse and local port forwarding, and forced-command setups for automation; chrooted SFTP and internal-sftp help isolate accounts, and key-based authentication plus `AuthorizedKeysCommand` scale access in larger environments. Monitoring and troubleshooting If connections fail, inspect `sshd` logs, increase client verbosity with `ssh -vvv`, verify listening sockets with `ss` or `netstat`, confirm SELinux/AppArmor policies and firewall rules; temporary problems are often resolved by checking `sshd -t` for syntax errors and restarting with `sudo systemctl restart sshd`. Related software to know The SSH ecosystem includes the client `ssh`, key management with `ssh-keygen`, file transfers via `sftp` and `scp`, plus system tools such as `systemctl` and `journalctl` for service lifecycle and logs; intrusion mitigations like fail2ban complement sshd for production servers. Next steps Practice configuring `sshd` on a test VM, enable key-only logins and set up a chrooted SFTP user; then explore tunnelling and automation to master remote administration and prepare for certifications like CompTIA Linux+ or LPIC-1 with intensive exam preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. network security infrastructure processes