#!/usr/bin/env bash # Copies files to/from the Fennec OS VM. Use "vm:" prefix for the remote side. # vmcp.sh local vm:/remote vmcp.sh vm:/remote local OPTS=(-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR -P 2222) args=() for a in "$@"; do args+=("${a/#vm:/root@localhost:}"); done exec sshpass -p smartfox scp "${OPTS[@]}" "${args[@]}"