#!/bin/sh
# vm COMMAND: runs COMMAND in the Intel Tiger VM on precision (exe-mac-osx-intel, ssh on 127.0.0.1:42075), account
# tiger, with precision's RSA key (the guest's OpenSSH 5.1 knows no ed25519, and only the old key exchange).
# test/compare.sh copies this to precision's ~/Claude/tiger-otx/vm.
exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR -o ConnectTimeout=15 \
	-o KexAlgorithms=+diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-rsa,ssh-dss \
	-o PubkeyAcceptedAlgorithms=+ssh-rsa -o IdentityFile=~/.ssh/id_rsa -o BatchMode=yes \
	-o ControlMaster=auto -o ControlPath=/tmp/otx-vm-%r@%h:%p -o ControlPersist=600 \
	-p 42075 tiger@127.0.0.1 "$@"
