From 7567bfcc2e1d1d96edc87381f38883f62aa1c8af Mon Sep 17 00:00:00 2001 From: "Lockszmith (@VAST)" Date: Thu, 3 Apr 2025 22:46:46 -0400 Subject: [PATCH 1/2] align renamis in _home.macos --- .../sz.env/000_stop_on_non_interactive_sessions.env | 1 - .../sz.env/099_stop_on_non_interactive_sessions.env | 1 + .../sz.env/remove_000_stop_on_non_interactive_sessions.env | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) delete mode 120000 _home.macos/private_dot_config/sz.env/000_stop_on_non_interactive_sessions.env create mode 120000 _home.macos/private_dot_config/sz.env/099_stop_on_non_interactive_sessions.env create mode 120000 _home.macos/private_dot_config/sz.env/remove_000_stop_on_non_interactive_sessions.env diff --git a/_home.macos/private_dot_config/sz.env/000_stop_on_non_interactive_sessions.env b/_home.macos/private_dot_config/sz.env/000_stop_on_non_interactive_sessions.env deleted file mode 120000 index 117cb13..0000000 --- a/_home.macos/private_dot_config/sz.env/000_stop_on_non_interactive_sessions.env +++ /dev/null @@ -1 +0,0 @@ -../../../_src.posix/private_dot_config/sz.env/000_stop_on_non_interactive_sessions.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/099_stop_on_non_interactive_sessions.env b/_home.macos/private_dot_config/sz.env/099_stop_on_non_interactive_sessions.env new file mode 120000 index 0000000..8f5aa29 --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/099_stop_on_non_interactive_sessions.env @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/099_stop_on_non_interactive_sessions.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/remove_000_stop_on_non_interactive_sessions.env b/_home.macos/private_dot_config/sz.env/remove_000_stop_on_non_interactive_sessions.env new file mode 120000 index 0000000..4cdc0dd --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/remove_000_stop_on_non_interactive_sessions.env @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/remove_000_stop_on_non_interactive_sessions.env \ No newline at end of file From 0e84e1bdda1d0e4998de594e809e7318f9732dbb Mon Sep 17 00:00:00 2001 From: "Lockszmith (@VAST)" Date: Thu, 3 Apr 2025 22:47:24 -0400 Subject: [PATCH 2/2] Improve tssh-with-tunnel --- .../bin/executable_tssh-with-tunnel | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/_src.posix/private_dot_local/bin/executable_tssh-with-tunnel b/_src.posix/private_dot_local/bin/executable_tssh-with-tunnel index 6da0438..189a960 100644 --- a/_src.posix/private_dot_local/bin/executable_tssh-with-tunnel +++ b/_src.posix/private_dot_local/bin/executable_tssh-with-tunnel @@ -30,19 +30,18 @@ SSHUSER="${SSHUSER:-vastdata}" TARGET="${SSHUSER}@$(tsh-get "$SEARCH" "$SSHUSER")" -VMS="${VMS:-"$(awk '$5 { split($4, cidr, "/"); print cidr[1] }' <(tsh ssh "${TARGET}" bash -l <&2 -eval "${RUN} tsh ssh ${TUNNEL} '${TARGET}' ${*:2}" +TUNNEL="-L ${LOCAL_PORT}:${VMS}:${TARGET_PORT}" +SSH_OPTS="${SSH_OPTS:--N}" + +printf "Executing: %s ...\n" "tsh ssh ${TUNNEL} ${TARGET} ${*:2}" >&2 +eval "${RUN} tsh ssh ${SSH_OPTS} ${TUNNEL} '${TARGET}' ${*:2}"