ssh-tunneling icon indicating copy to clipboard operation
ssh-tunneling copied to clipboard

Something's going wrong at Line 109 in tunnel.bash

Open jradxl opened this issue 6 years ago • 1 comments

Hi, Thanks for script. Must have taken you ages to write. I've got a problem with Line 109 in tunnel.bash Something's up with creating the command to send to the remote side to check the port. For me the script is crashing out on the SSH command. It's 01:00 so I'm going to give up for the moment...

This works (where I've substituted ls -al ) !! isProcessRunning="$(ssh ${identityOption} -n "${remoteUser}@${remoteHost}" "ls -al")"

Command Line is: ./tunnel.bash --local-port 22 --remote-port 2223 --remote-to-local --remote-user XXX --remote-host 99.99.99.99 --identity-file "/home/XXX/.ssh/id_rsa"

jradxl avatar Feb 17 '20 01:02 jradxl

OK, found it... On my Ubuntu 18.04 with Bash 4, using "set -e" causes script to end if script uses a non-zero Return, which you do in the Utils library. I didn't realise that !!

jradxl avatar Feb 17 '20 17:02 jradxl