r/serterm: Deploy serial terminal multiplexer

Using `tmux`, we can spawn a bunch of `picocom` processes for the serial
ports connected to other server's console ports.  The
_serial-terminal-server_ service manages the `tmux` server process,
while the individual _serial-terminal-server-window@.service_ units
create a window in the `tmux` session.

The serial terminal server runs as a dedicated user.  The SSH server is
configured to force this user to connect to the `tmux` session.  This
should help ensure the serial consoles are accessible, even if the
Active Directory server is unavailable.
This commit is contained in:
2024-11-07 21:36:07 -06:00
parent 8b9cf1985a
commit 6115762847
16 changed files with 280 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
{% for key in serterm_authorized_keys %}
{{ key }}
{% endfor %}

View File

@@ -0,0 +1,3 @@
Match user serterm
ForceCommand tmux attach
AuthorizedKeysFile /etc/serterm/authorized_keys

View File

@@ -0,0 +1 @@
set -g remain-on-exit on