rootfs/home/andre/.bashrc aktualisiert

This commit is contained in:
2026-01-10 13:33:41 +01:00
parent 557d6b8af5
commit 96e8a999dd

View File

@@ -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
###############################################################################