Skip to content

Repairs

OhMyBahGosh edited this page Nov 8, 2026 · 1 revision

Repairs

Each repair is one button. It says what it will change before it does it and keeps a dated backup of anything it touches. Changes to the keys file can be undone with Undo a change.

Turn SSH on now

Turns on the Homebrew Channel's SSH switch and starts dropbear straight away, without the restart the Homebrew Channel's own toggle needs.

Fix my keys file

Repairs /home/root/.ssh/authorized_keys:

  • Windows line endings and hidden characters (like a byte-order mark from Notepad) are removed.
  • A key wrapped across several lines is joined back into one.
  • A key in PuTTYgen's "SSH2 PUBLIC KEY" format is turned into OpenSSH's one-line format.
  • Lines that aren't keys, and private keys pasted by mistake, are moved to a side file next to it (authorized_keys.rejected-...), never deleted.
  • The file, the .ssh folder and /home/root get the owner and permissions SSH needs (root, 600 for the file, 700 for the folder).

If a private key was in there, treat that key as no longer secret: make a new key pair and remove the old one from anywhere else it's used.

Go back to password login

For when you're locked out. It sets authorized_keys aside (renamed, not deleted), turns Keys only off, drops your own password, and turns the alpine password back on right away. Log in with user root and password alpine, then add a key again with Set up a key.

Repair the TV's SSH keys

Shown when one of the TV's host key files is empty, which stops dropbear from starting. The TV's keys are backed up, the old ones removed, and dropbear makes new ones at the next login. Computers that logged in before will warn REMOTE HOST IDENTIFICATION HAS CHANGED once; see Troubleshooting.

Put my settings back

Shown when SSH is running without your SSH settings, for example after something else restarted it. Restarts dropbear with them. Open sessions stay connected.

Undo a change

Lists the backups of the keys file SSH Doctor made and puts the one you pick back (after backing up the current one, so this can be undone too). They sit next to it in /home/root/.ssh, named like authorized_keys.ssh-doctor-20261101-142530. Other backups, like the TV's host keys, are kept next to what they came from with the same kind of name.

Clone this wiki locally