rootfs/home/andre/.bashrc aktualisiert
This commit is contained in:
@@ -94,10 +94,8 @@ cark-ssh() {
|
|||||||
shift || true
|
shift || true
|
||||||
|
|
||||||
# Defaults
|
# Defaults
|
||||||
SSH_USER=""
|
SSH_HOSTNAME="finance"
|
||||||
SSH_HOSTNAME="$HOST"
|
|
||||||
SSH_PROXY=""
|
SSH_PROXY=""
|
||||||
SSH_AUTH_OPTS=""
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Gemeinsame CyberArk-Auth-Optionen
|
# Gemeinsame CyberArk-Auth-Optionen
|
||||||
@@ -107,6 +105,18 @@ cark-ssh() {
|
|||||||
SSH_USER="$CYBERARK_USER"
|
SSH_USER="$CYBERARK_USER"
|
||||||
SSH_AUTH_OPTS="$CYBERARK_AUTH_OPTS"
|
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-*
|
# Host switch-admin-*
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@@ -121,17 +131,6 @@ cark-ssh() {
|
|||||||
SSH_HOSTNAME="admin"
|
SSH_HOSTNAME="admin"
|
||||||
fi
|
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
|
# SSH-Command bauen
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user