From b731e2f1dd0972409b136aebc7b463dd72c9cfad Mon Sep 17 00:00:00 2001 From: CNlucius Date: Tue, 13 Sep 2016 11:40:12 +0800 Subject: ONOSFW-171 O/S-SFC-ONOS scenario documentation Change-Id: I51ae1cf736ea24ab6680f8edca1b2bf5dd598365 Signed-off-by: CNlucius --- framework/src/onos/tools/test/bin/onos-secure-ssh | 34 ----------------------- 1 file changed, 34 deletions(-) delete mode 100755 framework/src/onos/tools/test/bin/onos-secure-ssh (limited to 'framework/src/onos/tools/test/bin/onos-secure-ssh') diff --git a/framework/src/onos/tools/test/bin/onos-secure-ssh b/framework/src/onos/tools/test/bin/onos-secure-ssh deleted file mode 100755 index 6d898ee8..00000000 --- a/framework/src/onos/tools/test/bin/onos-secure-ssh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# Secures the ONOS console for all instances in the cell ONOS cluster. -# ----------------------------------------------------------------------------- - -[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 -. $ONOS_ROOT/tools/build/envDefaults - -nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2) - -for node in $nodes; do - # Prune the node entry from the known hosts file since server key changes - ssh-keygen -f "$HOME/.ssh/known_hosts" -R [$node]:8101 || - ( echo "Failed to remove key from known_hosts" >&2 && exit 1 ) - - # Setup passwordless login for the local user on the remote node - ssh $ONOS_USER@$node " - [ ! -f ~/.ssh/id_rsa.pub ] && ssh-keygen -t rsa -f ~/.ssh/id_rsa -P '' -q - $ONOS_INSTALL_DIR/bin/onos-user-key \$(id -un) \$(cut -d\\ -f2 ~/.ssh/id_rsa.pub) - $ONOS_INSTALL_DIR/bin/onos-secure-ssh "$@" - - # Implicitly accept the new server key in dev/test environments - while ! ssh -p 8101 -o StrictHostKeyChecking=no localhost list 2>/dev/null; do - echo Waiting for connection... - sleep 1 - done - " - - # Setup passwordless login for the remote user on the local bench host - # For now, we let the local public key override the remote one - # TODO: fix username collision between workbench and the remote hosts - onos-user-key $node -done - -- cgit 1.2.3-korg