aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rumba-access8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/rumba-access b/tools/rumba-access
index a2a5e83..02f639e 100755
--- a/tools/rumba-access
+++ b/tools/rumba-access
@@ -26,15 +26,15 @@ if [ "$SSH_PORT" == "" ]; then
exit 255
fi
-PROXY_CMD=$(grep "\<${MACHINE_ID}\>" ${FILE} | awk -F';' '{print $5}')
-if [ "$PROXY_CMD" == "" ]; then
+PROXY=$(grep "\<${MACHINE_ID}\>" ${FILE} | awk -F';' '{print $5}')
+if [ "$PROXY" == "" ]; then
echo "Error: Node ${MACHINE_ID} unknown"
exit 255
fi
echo "Accessing Rumba node ${MACHINE_ID}"
-if [[ $PROXY_CMD = "None" ]]; then
+if [[ $PROXY = "None" ]]; then
ssh -A -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p ${SSH_PORT} ${USER}@${HOST}
else
- ssh -A -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -oProxyCommand="$PROXY_CMD" -p ${SSH_PORT} ${USER}@${HOST}
+ ssh -A -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -oProxyCommand="ssh ${USER}@$PROXY -W %h:%p" -p ${SSH_PORT} ${USER}@${HOST}
fi