Concepts / Network services

Network services

SSH

Also called secure shell, sshd, public key authentication

Encrypted remote login and commands, on TCP port 22, with passwords or keys.

Two proofs before a shell: the server's key, then the user's
Two proofs before a shell: the server's key, then the user's

The server sends its host key, and the client checks it is the one saved in known_hosts from the first visit. Then the user proves who she is by signing with her private key, and the server looks for the matching public key in authorized_keys. No password crosses the network.

SSH is encrypted remote login and remote commands, on TCP port 22. The server proves its identity with a host key, which the client remembers and checks on every later connection. Users log in with a password or, better, a key pair. Keys remove password guessing entirely; PasswordAuthentication no turns passwords off.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab