From 96e8a999dd4e18e57944220ba267db3cae9037d8 Mon Sep 17 00:00:00 2001 From: andre Date: Sat, 10 Jan 2026 13:33:41 +0100 Subject: [PATCH] rootfs/home/andre/.bashrc aktualisiert --- rootfs/home/andre/.bashrc | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/rootfs/home/andre/.bashrc b/rootfs/home/andre/.bashrc index 958ee84..65c70f6 100644 --- a/rootfs/home/andre/.bashrc +++ b/rootfs/home/andre/.bashrc @@ -94,10 +94,8 @@ cark-ssh() { shift || true # Defaults - SSH_USER="" - SSH_HOSTNAME="$HOST" + SSH_HOSTNAME="finance" SSH_PROXY="" - SSH_AUTH_OPTS="" ############################################################################### # Gemeinsame CyberArk-Auth-Optionen @@ -107,6 +105,18 @@ cark-ssh() { SSH_USER="$CYBERARK_USER" SSH_AUTH_OPTS="$CYBERARK_AUTH_OPTS" + + ############################################################################### + # Host switch-catalyst-* switch-nexus-* switch-fibre-* router-* + ############################################################################### + if [[ "$HOST" == switch-catalyst-* \ + || "$HOST" == switch-nexus-* \ + || "$HOST" == switch-fibre-* \ + || "$HOST" == router-* ]]; then + + SSH_HOSTNAME="finance" + fi + ############################################################################### # Host switch-admin-* ############################################################################### @@ -121,17 +131,6 @@ cark-ssh() { SSH_HOSTNAME="admin" fi - ############################################################################### - # Host switch-catalyst-* switch-nexus-* switch-fibre-* router-* - ############################################################################### - if [[ "$HOST" == switch-catalyst-* \ - || "$HOST" == switch-nexus-* \ - || "$HOST" == switch-fibre-* \ - || "$HOST" == router-* ]]; then - - SSH_HOSTNAME="finance" - fi - ############################################################################### # SSH-Command bauen ###############################################################################