feat: scripts/vminstall.sh installs an ssh-ready test VM unattended; TESTPLAN.md; vm-install skill

This commit is contained in:
theupriser committed 2026-09-28 10:07:13 +02:00
1 parent 0f57d86bae
commit ac8f77cf4a
19 files changed
+705 -72

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# Authorize the test VM's SSH key (made by vminstall.sh) on the Steam Machine
# too, so the same key reaches both. Asks the Steam Machine user's password
# once (ssh-copy-id); adds the key only if it isn't there yet.
# scripts/steammachine-addkey.sh [user@host] default: steammachine (~/.ssh/config)
# Env: VM_SSH_KEY (default ~/.ssh/steamify-vm_ed25519).
set -euo pipefail
key="${VM_SSH_KEY:-$HOME/.ssh/steamify-vm_ed25519}"
target="${1:-steammachine}"
[[ -f "$key.pub" ]] || { echo "No $key.pub: run scripts/vminstall.sh first (it makes the key)." >&2; exit 1; }
ssh-copy-id -i "$key.pub" "$target"
ssh -i "$key" -o IdentitiesOnly=yes -o BatchMode=yes "$target" true &&
echo "OK: ssh -i $key $target works without a password."