home-server/roles/front/templates/DMZ.dev.j2

12 lines
577 B
Plaintext
Raw Normal View History

2023-12-30 16:32:52 +01:00
#!/usr/bin/env bash
2018-09-03 20:06:05 +02:00
# $1: bash script; $2…: arguments (bash -c "…script…" 'bash' …arguments…)
#
# The home-server project produces a multi-purpose setup using Ansible.
2023-07-30 19:31:56 +02:00
# Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
2018-09-03 20:06:05 +02:00
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
2023-12-30 16:32:52 +01:00
cmd="$(printf "%q" "$1")"; shift
args=()
while [ $# -gt 0 ]; do args+=("$(printf "%q" "$1")"); shift; done
exec ssh -i ~/.ssh/id-chroot -o StrictHostKeyChecking=no -p 20022 -T 10.0.2.2 bash -c "$cmd" bash "${args[@]}"