I have a ssh script that looks like this.
#!/bin/bash
user="jumpuser"
host="??.??.??.??"
port="34"
x="ssh $user@$host -p $port "
x+="-L 8001:??.??.??.??:34 "
...many more entries
x+="-L 8998:??.??.??.??:34 "
$x
We use this in my team to create a tunnel to reach certain services in our environment.
This was working perfectly fine, but today it started failing. The weird thing is it fails only for me. I get this error and no connection is made :
dup() in/out/err failed
Im on Mac OS, as everyone else, but im the only person having this issue and it started specifically today. I already rebooted my machine several times with no success.