add nico_ssh_proxy for jumping to existing hosts
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
This commit is contained in:
parent
2ea4924db0
commit
a212f5346e
1 changed files with 17 additions and 0 deletions
17
nico_ssh_proxy
Executable file
17
nico_ssh_proxy
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/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 "$@"
|
Loading…
Reference in a new issue