Hi am just learning some port forwarding concepts and my doubt/question is below. I have a remote ec2 where jasper (j.s.p.r) is running on 7000 port, i can only access this jasper ec2 instance via a bastion server b.s.t.n then ssh to j.s.p.r . Now my question is i need to be able to deploy the jasper reports from local jasper studio directly on to the j.s.p.r server by forwarding my port. So here is what i am using to achieve the same but not successfully.
ssh -N -L 7000:j.s.p.r:7000 -p 22 [email protected]
netstat -lntponce ssh session is up.netstat -lntpshould should you that the port is listening. Then, you can give it a try with telnet (telnet localhost 7000). If there is a problem, there should be some error output on the ssh client.