I configurated a bastion server on AWS on my public subnet. I can make direct ssh to the ec2 instance inside the private subnet, using the bastion host.I can connect to the bastion host and check if the 7474 port on the private ec2 istance is opened.nc -v -z -w 5 10.0.3.102 7474; echo $?Connection to 10.0.3.102 7474 port [tcp/*] succeeded!0I want to ssh tunnel from a localhost (my home machine) to a ec2 instance on private network. ssh -v -C -N -L 9000:PRIVATE_MDM:7474 BASTIONBut i getting:open failed: administratively prohibited: open failedAuthenticated to 52.32.240.40 ([52.32.240.40]:22).debug1: Local connections to LOCALHOST:9000 forwarded to remote address PRIVATE_MDM:7474debug1: Local forwarding listening on ::1 port 9000.debug1: channel 0: new [port listener]debug1: Local forwarding listening on 127.0.0.1 port 9000.debug1: channel 1: new [port listener]debug1: Requesting no-more-sessions@openssh.comdebug1: Entering interactive session.debug1: Connection to port 9000 forwarding to PRIVATE_MDM port 7474 requested.debug1: channel 2: new [direct-tcpip]debug1: Connection to port 9000 forwarding to PRIVATE_MDM port 7474 requested.debug1: channel 3: new [direct-tcpip]channel 2: open failed: administratively prohibited: open failedchannel 3: open failed: administratively prohibited: open faileddebug1: channel 2: free: direct-tcpip: listening port 9000 for PRIVATE_MDM port 7474, connect from 127.0.0.1 port 42685 to 127.0.0.1 port 9000, nchannels 4debug1: channel 3: free: direct-tcpip: listening port 9000 for PRIVATE_MDM port 7474, connect from 127.0.0.1 port 42686 to 127.0.0.1 port 9000, nchannels 3debug1: Connection to port 9000 forwarding to PRIVATE_MDM port 7474 requested.debug1: channel 2: new [direct-tcpip]channel 2: open failed: administratively prohibited: open faileddebug1: channel 2: free: direct-tcpip: listening port 9000 for PRIVATE_MDM port 7474, connect from 127.0.0.1 port 42687 to 127.0.0.1 port 9000, nchannels 3
Trying to make a SSH Tunel
ssh tunneling;sshd;ssh agent