Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Jumphosts #72

Open
mhbacks opened this issue Oct 8, 2019 · 1 comment
Open

Add Support for Jumphosts #72

mhbacks opened this issue Oct 8, 2019 · 1 comment

Comments

@mhbacks
Copy link

mhbacks commented Oct 8, 2019

Hi,

it would be cool when you add support for jumphosts. I add it dirty, but maybe i forgot something...

while getopts "p:k:f:DXchJ:" o; do
  case ${o} in
    J)
      SSH_JH="-J${OPTARG} "
      SCP_JH="-oProxyJump=${OPTARG} "
      ;;
mbacks-mbp:xiringuito mbacks$ grep "_JH" xiringuito 
      SSH_JH="-J${OPTARG} "
      SCP_JH="-oProxyJump=${OPTARG} "
ssh ${SSH_OPTS} ${SSH_JH} ${SSH_SERVER} mkdir -p ${REMOTE_PATH}
scp ${SSH_OPTS} ${SCP_JH} ./scripts/server-*.sh ${SSH_SERVER}:${REMOTE_PATH} >/dev/null
ssh ${SSH_OPTS} ${SSH_JH} ${SSH_SERVER} ${REMOTE_PATH}/server-setup.sh ${TUNNEL_ID} ${IP_BASE}
ssh ${SSH_OPTS} ${SSH_JH} ${SSH_SERVER} pkill -f ${REMOTE_PATH}/server-execute.sh &>/dev/null
${SSH_TUNNEL_CMD} ${SSH_JH} ${SSH_OPTS} -oStrictHostKeyChecking=no -w ${LOCAL_TUNNEL_ID}:${TUNNEL_ID} ${SSH_SERVER} ${REMOTE_PATH}/server-execute.sh ${TUNNEL_ID} ${IP_BASE} ${MAX_FAILED_PINGS} &
mbacks-mbp:xiringuito mbacks$ 

best regards,
Max

@ivanilves
Copy link
Owner

Good tip @mhbacks

Will try to add this, though I'm very short on time currently 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants