nsbin/nico_ssh_proxy
Nico Schottelius a212f5346e
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
add nico_ssh_proxy for jumping to existing hosts
2024-02-19 11:35:44 +09:00

17 lines
362 B
Bash
Executable file

#!/bin/sh
# Nico Schottelius, 2024-02-19, RIPEL Cafe
# Logic:
# Remove first argument, which is assumed to be the hostname
# ...
# not even needed, go back to sleep.
jumphost=nico@nico-vm.schottelius.org
# echo "$@"
# original=$1; shift
# new=$(echo $original | sed 's/.not$//')
set -- -oProxyCommand="ssh -W %h:%p ${jumphost}" "$@"
# echo ssh "$@"
ssh "$@"