Consolidate _src.posix into _home

This commit is contained in:
Lockszmith 2025-04-18 13:55:54 -04:00
parent bfdc7f4c1d
commit f16c2e61b3
279 changed files with 2134 additions and 2190 deletions

View file

@ -1 +0,0 @@
../../../_src.posix/private_dot_local/bin/executable_tssh

View file

@ -0,0 +1,29 @@
#! /usr/bin/env bash
set -e
SCRIPT_NAME="${0##/*}"
usage() {
printf '%s\n' \
'SSH using Teleport with interactive selection and VAST-reasnoble defaults' \
'' \
"${SCRIPT_NAME} " \
'' \
'Usage:' \
''
exit 2
}
if [[ $# -eq 0 ]]; then
usage
fi
SEARCH="$1"
SSHUSER="${SSHUSER:-vastdata}"
TUNNEL="${TUNNEL:+-L ${TUNNEL}}"
TARGET="${SSHUSER}@$(tsh-get "$SEARCH" "$SSHUSER")"
tsh ssh ${TUNNEL} "${TARGET}" "${@:2}"
# vim: set ft=sh expandtab tabstop=4 shiftwidth=4: