One-click SSH terminals, in WEB-browser, on a Home Assistant dashboard with ttyd
I wanted a few buttons on my Home Assistant (HA) dashboard that open an SSH session to my servers, so I could jump straight to the password prompt without opening a terminal, typing " ssh user@server.local" and so on. It turned out to be a bit harder than expected, but the solution is simple, lightweight and works with any browser on the LAN. The standard "Terminal & SSH" add-on can't be used for this. It only opens as an interactive window and doesn't accept any command or parameters from a button. My first idea, the Proxmox web console, had another catch described below. The solution is ttyd , a tiny program that shares a terminal over the web, with one button per target in HA. Intro Why not the Terminal & SSH add-on? The add-on opens a ttyd terminal inside HA, but there is no way to pass " ssh user@server.local " from a button. You can make the terminal start ssh automatically with init_commands...