About

Tool No. 61 of Pikkola

An ssh login is decided by four files. One is yours, one is a pair of keys, one sits on the server, and one decides what the server accepts. Three of them are short enough to keep in your head, and the fourth is the one people get wrong, so this page builds the first, makes a test copy of the second, and reads the fourth.

What it does

How the config is assembled

A block is written in a fixed order: Host, then HostName, User, Port, IdentityFile, ProxyJump, ForwardAgent. Fields you leave empty are skipped rather than written as empty, so the file says only what you filled in. Blocks are separated by one blank line and the file ends with a newline.

The order of the blocks is the order of the list, because that order is part of the meaning. For each setting, ssh takes the first block whose Host matches, so a specific host belongs above a wildcard. That is why the Host * block, when you ask for it, is appended at the end.

Nothing else is added: no date, no generated-by comment, no editor setting. What you copy is exactly what the panel shows.

How a key is made

The pair comes from crypto.subtle.generateKey, which is the browser's own implementation of the standard, not a copy of it in the page. ECDSA uses the P-256 curve; RSA uses 2048 bits with a public exponent of 65537.

The public key is rebuilt in the format OpenSSH writes: a length-prefixed type name, the curve name for ECDSA or the modulus and exponent for RSA, each length-prefixed, then base64 on one line with an optional comment. The fingerprint is the SHA-256 of that same blob, base64 encoded without padding, which is what ssh-keygen -lf prints.

The private key is exported as PKCS#8 and wrapped in PEM, which is the BEGIN PRIVATE KEY block. Nothing is uploaded at any step, and the key is held in a variable on the page rather than in storage.

How the audit reads a file

Lines are read the way sshd reads them. A # starts a comment and the rest of the line is dropped. A setting is a keyword and a value. For most keywords sshd keeps the first value it meets and ignores later ones, so a second appearance is reported as a line that does nothing, not as a change.

Everything after a Match line is conditional, and the finding says so, because a setting inside a Match block may not apply to the connection you are worried about. The page does not try to evaluate Match conditions; it shows the line and lets you judge.

The score starts at 100 and loses points for each finding by severity. It is a reading aid, not a measurement: a file with a low score is not necessarily broken, and a file with 100 has not been tested against your version of sshd.

Where the limits are

Why it is free

Pikkola builds small tools with one job each and keeps them free, with no account and no lock on the result. A page that runs in the browser costs almost nothing to serve, so there is no reason to charge for it or to watch who uses it.

Contact

A setting the audit should know, a command that does not work on your system, a Korean or Japanese sentence that reads badly: hello@pikkola.com. The line you pasted and the sshd or ssh version are the most useful thing to send.

Back to the studio