#!/usr/bin/env bash # # qvm-ssh - Direct SSH access to the VM # # This script provides SSH access to the running VM: # - Auto-starts VM if not running # - Interactive shell by default (detects TTY) # - Single command execution with -c flag # - Passes through additional SSH arguments # - Uses StrictHostKeyChecking=no for host key management # set -euo pipefail # Source common library QVM_LIB_DIR="${QVM_LIB_DIR:-$(dirname "$(readlink -f "$0")")/../lib}" # shellcheck source=lib/common.sh source "$QVM_LIB_DIR/common.sh" # # show_usage - Display help text # show_usage() { cat <