I'm trying to connect to JBoss EAP 6 instance management on OpenShift.
Connecting directly doesn't work (firewall), so I want to set up a SSH tunnel:
ssh -L 10999:localhost:9999 683...@web-ozcz.rhcloud.com
And then
jboss-eap-6.1/bin/jboss-cli.sh --gui --controller=localhost:10999
But on the serverside, I get this:
channel 3: open failed: connect failed: Connection refused
How can I connect to the management CLI? How to set up the system to allow SSH tunnel?