There's a jumpstation to a closed network. I'm supposed to login to this JS with ssh and run another ssh command to connect to the target server. SSH tunnels on JS are disabled for security reasons.
I want to run a GUI database client.
The JS has modern bash which supports IO redirection to /dev/tcp/host/port.
On My workstation, when the database client connects to xinetd, it would launch ssh with remote command like this:
Code:
"exec 4<>/dev/tcp/serv1/1521 && cat >&4 <&0 & cat <&4"