aboutsummaryrefslogtreecommitdiff
path: root/tools/rumba-access
diff options
context:
space:
mode:
authorVincenzo Maffione <v.maffione@gmail.com>2017-06-08 22:19:05 +0200
committerVincenzo Maffione <v.maffione@gmail.com>2017-06-08 22:19:05 +0200
commita427bde346383f8b414e3f49680d40cd1e94d321 (patch)
tree0db37d718dd6ebb0b7752faa157a09d81acc8480 /tools/rumba-access
parent70434950970ac53fde6aa6823eb73d7f3da67904 (diff)
downloadrumba-a427bde346383f8b414e3f49680d40cd1e94d321.tar.gz
rumba-a427bde346383f8b414e3f49680d40cd1e94d321.zip
tools: rumba-access: rearrange script
Diffstat (limited to 'tools/rumba-access')
-rwxr-xr-xtools/rumba-access10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/rumba-access b/tools/rumba-access
index 4c77d2b..e4ab468 100755
--- a/tools/rumba-access
+++ b/tools/rumba-access
@@ -32,10 +32,12 @@ if [ "$PROXY_CMD" == "" ]; then
exit 255
fi
-echo "Accessing Rumba node ${MACHINE_ID}"
-# -o IdentityFile=buildroot/irati_rsa
if [[ $PROXY_CMD = "None" ]]; then
- ssh -A -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p ${SSH_PORT} ${USER}@${HOST}
+ PROXY_CMD=""
else
- ssh -A -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -oProxyCommand="$PROXY_CMD" -p ${SSH_PORT} ${USER}@${HOST}
+ PROXY_CMD="-oProxyCommand=$PROXY_CMD"
fi
+
+echo "Accessing Rumba node ${MACHINE_ID}"
+# -o IdentityFile=buildroot/irati_rsa
+ssh -A -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ${PROXY_CMD} -p ${SSH_PORT} ${USER}@${HOST}