diff options
author | Vincenzo Maffione <v.maffione@gmail.com> | 2017-06-08 22:19:05 +0200 |
---|---|---|
committer | Vincenzo Maffione <v.maffione@gmail.com> | 2017-06-08 22:19:05 +0200 |
commit | a427bde346383f8b414e3f49680d40cd1e94d321 (patch) | |
tree | 0db37d718dd6ebb0b7752faa157a09d81acc8480 | |
parent | 70434950970ac53fde6aa6823eb73d7f3da67904 (diff) | |
download | rumba-a427bde346383f8b414e3f49680d40cd1e94d321.tar.gz rumba-a427bde346383f8b414e3f49680d40cd1e94d321.zip |
tools: rumba-access: rearrange script
-rwxr-xr-x | tools/rumba-access | 10 |
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} |