diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-11-07 16:58:58 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-11-07 16:58:58 +0100 |
commit | 7d585ba499cdfe85117dc388c022acacb3d02d98 (patch) | |
tree | ed42a0e35b62bdb222be5dd83c89dc651db62c92 | |
parent | e4ed30b5b2ad6d33d2afd656523e78627f1f9195 (diff) | |
download | rumba-7d585ba499cdfe85117dc388c022acacb3d02d98.tar.gz rumba-7d585ba499cdfe85117dc388c022acacb3d02d98.zip |
tools: Update rumba-access to new proxy command
After the refactor of ssh_support to use the native paramiko way to
setup an ssh connection via a proxy, rumba-access stopped working,
since it relied on the exporting of the proxy command to
ssh_info. This commit updates rumba-access to take the refactor into
account.
-rwxr-xr-x | tools/rumba-access | 8 |
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 |