First version

This commit is contained in:
andy committed 2026-10-15 20:44:05 -03:00
commit 243e92a9dd
84 files changed
+4012

No files matched your search

Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# Runs a command in the test VM: tests/vssh.sh team|icpc 'command'
# Passwords: TEAM_PASS (default contest) and ADMIN_PASS (password given to build.sh).
user=$1; shift
case "$user" in
team) pass=${TEAM_PASS:-contest} ;;
icpc) pass=${ADMIN_PASS:?set ADMIN_PASS to the administrator password} ;;
*) echo "user must be team or icpc" >&2; exit 2 ;;
esac
exec sshpass -p "$pass" ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
-o LogLevel=ERROR -o ConnectTimeout=5 -p 2222 "$user@127.0.0.1" "$@"