basforge

Search titles, text and the “If it doesn’t work” cases.

    RU
    Topic · Linux

    SSH

    Keys, sshd_config, tunnels, passwordless login

    Entries
    10 + 5
    Cases
    37
    Updated
    2026-10-26
    Series · where to startOverview

    SSH: how logging in to a server works and what else it’s for

    SSH is an encrypted channel to a server on port 22: you use it for a shell, file copies, admin panels that are closed to the outside, and git pushes. Server and user prove who they are with key pairs — and almost every SSH failure comes down to which key sits where.

    Read the overview
    1. Keys · ManualSSH keys: from ssh-keygen to passwordless loginCreate a key, put it on the server and log in without a password. Everything else starts here.
    2. sshd_config · Configsshd_config: key-only login, no root, no passwordsTurn off password and root logins without locking yourself out. Plus the 50-cloud-init.conf trap.
    3. ~/.ssh/config · Config~/.ssh/config: short names, a key per server, jumping through a serverShort server names, a key per server, logging in through a jump host.
    4. Agent · Manualssh-agent: type the passphrase once per session, and why not ForwardAgentA passphrase you type once, and why ForwardAgent is riskier than it looks.
    5. Tunnels · ManualSSH tunnels: a closed admin panel through localhostReach an admin panel that’s closed to the outside via localhost, without publishing a port.
    6. Cheat sheet · Cheat sheetEveryday SSH: logging in, copying, keys, debuggingLogging in, copying, keys, debugging — the commands on one screen.

    Tips

    4

    Also on this topic

    Entries from other topics that are about this too.