What's the default SSH login for a rooted LG TV?
User
root, port 22, password alpine, once SSH is turned on in the Homebrew Channel. Adding your first key turns the alpine password off at the next boot.Why does SSH say Connection refused?
The SSH server isn't running or listening on that port. Turn on SSH in the Homebrew Channel's settings and restart the TV, or use SSH Doctor's Turn SSH on now, which starts it without a restart.
I added a key and now the password doesn't work.
That's by design: the first key in
authorized_keys turns alpine off at the next boot. If the key itself doesn't work, often because of Windows line endings or a key pasted on several lines, SSH Doctor's Fix my keys file or Go back to password login gets you back in.How can it fix SSH if SSH is broken?
It's a TV app that runs as root through the Homebrew Channel, not over SSH, so it works with just the remote.
How does pairing a key work?
Choose Set up a key on the TV, scan the QR code or open the address on your computer or phone, enter the short code, and upload a public key or let the browser make one. The private key never leaves your device.
Can I set my own root password?
Yes, on the TV or from your phone. It's turned into a SHA-512 crypt hash first, so the password itself is never sent over the network or saved on the TV.
Can I move SSH off port 22?
Yes. The old port stays open alongside the new one until you've logged in on the new one, so a typo can't lock you out.
Does it change system files?
No. Settings live in the Homebrew Channel's folders, a backup is kept before every change, and Reset to Homebrew Channel defaults removes all of it.
What happens to my keys after a factory reset?
They're gone with everything else, unless you saved them first. In More tools, Save or restore my setup puts your keys, the TV's own SSH keys, your settings and your password's hash on a USB drive. After rooting again, put them back: logins work as before, and computers don't warn that the TV changed.
Can it tell if my TV's SSH is open to the internet?
Yes, if your router has UPnP on. Each time the app opens, it asks the router which ports it forwards, and warns if the TV's SSH or telnet is one of them. Close it on the router takes those forwards off. Forwards set up by hand in the router usually aren't listed, so check its port forwarding page too.
SSH didn't come back after a restart. Can it fix that by itself?
Turn on Fix SSH at startup in SSH settings. After every restart it checks that SSH came up, starts it if it didn't, and fixes keys file permissions the SSH server would refuse. The main screen tells you when it had to.
Can I copy the login command on my phone instead of typing it?
Yes. How to log in, Report for getting help and the TV's fingerprints show a QR code. Scan it and your phone opens a page with everything ready to copy, one tap each: the login command for Mac, Linux, Windows, PuTTY or SFTP, an Open in an SSH app link, the
ssh-keygen -R line for a changed host key, an SSH config and the keys that can log in. It's read only and stops when you close that screen on the TV.How do I update SSH Doctor?
From the app. Each time it opens, it checks GitHub for a newer release and offers Update to v… with what's new. The Homebrew Channel installs it after checking the download's SHA-256, then SSH Doctor opens again by itself and shows what changed. More tools, Updates checks by hand.
Should I use my key or a password in WinSCP or FileZilla?
Whichever you log in with over SSH: File transfer in More tools says which one this TV takes. With a key, pick your private key file in the program (WinSCP and FileZilla offer to convert an OpenSSH key). With a password, it's
alpine or the one you set. The host, port and user are the same as for SSH.