rootfs/home/andre/.bashrc aktualisiert
This commit is contained in:
@@ -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
|
||||
###############################################################################
|
||||
|
||||
Reference in New Issue
Block a user