Repository navigation
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.
Turns on the Homebrew Channel's SSH switch and starts dropbear straight away, without the restart the Homebrew Channel's own toggle needs.
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
.sshfolder and/home/rootget the owner and permissions SSH needs (root,600for the file,700for 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.
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.
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.
Shown when SSH is running without your SSH settings, for example after something else restarted it. Restarts dropbear with them. Open sessions stay connected.
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.
LG webOS SSH Doctor by OhMyBahGosh · MIT · Not affiliated with LG Electronics. Something wrong on this page? Say so in Discussions.
Using it
Help
Contributing