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