mirror of
https://github.com/theupriser/steamify-cachyos-dev.git
synced 2026-10-05 12:45:56 +02:00
feat: scripts/vminstall.sh installs an ssh-ready test VM unattended; TESTPLAN.md; vm-install skill
This commit is contained in:
1 parent
21547dd7bc
commit
60a2698d02
19 files changed
+705
-72
No files matched your search
Executable
+13
@@ -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."
|
||||
Reference in new issue
Block a user