onos/tools/test/bin/onos-ssh
Thomas Vachuska 12bf445239 Introducing optional ability to secure the ONOS karaf shell and to use raw ssh client.
Change-Id: I48cfc922eaf980d1cb8b9182b26999ce3c26b667
2015-06-29 17:08:09 +00:00

12 lines
430 B
Bash
Executable File

#!/bin/bash
# -----------------------------------------------------------------------------
# Logs in to the remote ONOS node.
# -----------------------------------------------------------------------------
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
. $ONOS_ROOT/tools/test/bin/find-node.sh
[ -n "$1" ] && OCI=$(find_node $1) && shift
ssh -Y $ONOS_USER@$OCI "$@"