onos/tools/test/bin/onos-ssh
Pavlin Radoslavov 91413794ef Minor cleanup in some of the shell scripts in the "tools" directory.
No functional changes.

 * Description header formatting
 * Added missing new line at the end of a file
 * Removed extra new lines at the end of a file
2014-10-15 11:03:54 -07:00

11 lines
376 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
[ -n "$1" ] && OCI=$1 && shift
ssh -Y $ONOS_USER@$OCI "$@"