REDC2 devlog #1
Started REDC2, a small terminal tool for SSHing into my own machines (an Ubuntu server and a Raspberry Pi) without opening a new terminal every time. You type list, get an id for each machine, then select 0 and it just runs real ssh under the hood. No custom protocol, just a nicer front end for something I already do constantly.
Spent today mostly fixing bugs from the first rough version. select was calling ssh_into(), a function that didn’t exist, so picking a machine just crashed. Also had bad indentation, the quit/exit handling was nested inside the select block instead of next to it, and the main guard was indented inside main() so the script never actually ran.
Fixed both, then added colorama for colored output (green connecting, red errors, yellow on abort), and handling for when ssh isn’t installed at all, it checks /etc/os-release to find the distro and offers to install openssh instead of just crashing.
Machines are still hardcoded in a list at the top of the file, works but doesn’t scale. Next up is moving that into a config file so I don’t have to edit the script to add a machine, and adding a status check so list shows which machines are actually reachable.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.