Files
docu/shared/ssh/rebuild-assembled.sh
root 92148f41a7 Doku: tmux OSC-11-Leak (Windows Terminal) + pve2 SSH auf Horus.
Issue und Shared-Config für escape-time/O11-Fix; pve2-Keys in horus-root.pub.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 18:38:02 +02:00

43 lines
995 B
Bash
Executable File

#!/usr/bin/env bash
# Regeneriert assembled/*.pub aus fragments/ (Dedupe nach Key-Material, Feld 2)
set -euo pipefail
ROOT="$(cd "$(dirname "$0")" && pwd)"
FRAG="$ROOT/fragments"
ASM="$ROOT/assembled"
dedupe() { awk '!seen[$2]++'; }
mkdir -p "$ASM"
build() {
local out="$1"; shift
{ for f in "$@"; do cat "$f"; done; } | grep -v '^#' | grep -v '^$' | dedupe > "$ASM/$out"
}
build proxmox-root.pub \
"$FRAG/admin-workstations.pub" \
"$FRAG/host-pve1.pub" \
"$FRAG/host-pve2.pub" \
"$FRAG/legacy-pve1-rsa.pub"
build vm101-jean.pub \
"$FRAG/admin-workstations.pub" \
"$FRAG/admin-laptops-extra.pub" \
"$FRAG/admin-mobile.pub" \
"$FRAG/host-pve1.pub"
build pve2-lxc-root.pub \
"$FRAG/admin-workstations.pub" \
"$FRAG/host-pve2.pub" \
"$FRAG/admin-laptops-extra.pub" \
"$FRAG/admin-mobile.pub"
build horus-root.pub \
"$FRAG/horus-vps-root.pub" \
"$FRAG/host-pve2.pub"
build authorized_keys.all.pub \
"$FRAG"/*.pub
echo "OK: $(wc -l "$ASM"/*.pub | tail -1)"