Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
850 B · 26 lines
123456789101112131415161718192021222324252627#!/usr/bin/env fish# Quick SSH to Mac Builder# Usage: ./ssh-mac.fish [command]# Note: Password is stored in aesthetic-computer-vault/false.work/mac-builder-credentials.env
set MAC_USER falseworkset MAC_HOST host.docker.internal
# Load credentials from vaultset VAULT_FILE "/workspaces/aesthetic-computer/aesthetic-computer-vault/false.work/mac-builder-credentials.env"if test -f $VAULT_FILE source $VAULT_FILE set MAC_PASS $MAC_PASSWORDelse echo "❌ Error: Credentials file not found at $VAULT_FILE" echo " Password should be stored there for security." exit 1end
if test (count $argv) -gt 0 # Run command on Mac sshpass -p $MAC_PASS ssh -o StrictHostKeyChecking=no $MAC_USER@$MAC_HOST $argvelse # Interactive SSH session sshpass -p $MAC_PASS ssh -o StrictHostKeyChecking=no $MAC_USER@$MAC_HOSTend