Skip to content
BENIBIX Learn

SSH Server (sshd)

Infrastructure🔑 SSH & Remote AccessSSH Basics

Also known as sshd, SSH Daemon, OpenSSH Server

The program on a server that waits for SSH logins. It checks each one.

Think of it like

Think of it like the doorman of a building. He waits by the door and checks who you are.

Example

Jack installs Ubuntu Server and ticks the box for the OpenSSH server. From then on, sshd waits for his login.

Why it matters

If sshd stops, nobody can log in from afar. If it is set up badly, the wrong people can.

Definition

The SSH server is the program on a server that answers SSH logins. On Linux it is a daemon called sshd. It waits on port 22 for someone to connect. It checks your key or password, then starts a shell for you. Its rules live in a file called sshd_config.

Example code

console
$ systemctl is-active ssh
active
On Ubuntu the service is called ssh. Active means it is waiting for logins.
sshd is the program on the right. It answers every login on port 22.

Common mistake

Restarting sshd after a bad edit and closing your only session. Keep one session open and test from a second one.

Key takeaways

  1. 1
    A daemon. Runs all the time in the background.
  2. 2
    Checks you. Key or password, then a shell.
  3. 3
    One config file. Its rules live in sshd_config.

Learn it properly