- Secure Access CLoud administrator creates a TCP application with multiple targets
- When users open this application via the user portal, it is suggested to launch one command for each target separately as shown below:
ssh -N -L 2022:EVHUBUDSA0011.dublin.bcom.com:22 tcptunnel@sys-[email protected]
ssh -N -L 2023:EVHUBUDSA0207.dublin.bcom.com:22 tcptunnel@sys-[email protected]
ssh -N -L 2024:EVHUBUDSA0242.dublin.bcom.com:22 tcptunnel@sys-[email protected]
ssh -N -L 2025:EVHUBUDSA0208.dublin.bcom.com:22 tcptunnel@sys-[email protected]
- To avoid creating multiple instances of SSH shells, user wanted to simplify this process and merge the above commands into one using the following:
ssh -N -L 2022:EVHUBUDSA0011.dublin.bcom.com:22 tcptunnel@sys-st[email protected] \
-L 2023:EVHUBUDSA0207.dublin.bcom.com:22 tcptunnel@sys-st[email protected] \
-L 2024:EVHUBUDSA0242.dublin.bcom.com:22 tcptunnel@sys-st[email protected] \
-L 2025:EVHUBUDSA0208.dublin.bcom.com:22 tcptunnel@sys-[email protected]
- This seems to work fine but only the first two ports are being forwarded:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2023 0.0.0.0:* LISTEN 312/ssh
tcp 0 0 127.0.0.1:2022 0.0.0.0:* LISTEN 312/ssh
- The third and fourth sessions are missing
Secure Access Cloud
Generic TCPO Application
SSH tunnel commands failing
SSH syntax problem with application
The following command can be used to eliminate several running terminals :
ssh -N -L 2022:EVHUBUDSA0011.dublin.bcom.com:22 \
-L 2023:EVHUBUDSA0207.dublin.bcom.com:22 \
-L 2024:EVHUBUDSA0242.dublin.bcom.com:22 \
-L 2025:EVHUBUDSA0208.dublin.bcom.com:22 \
tcptunnel@sys-[email protected]