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?


According to this forum post JBoss AS7 management in OpenShift? in OpenShift site the management port is not accessible without first setting up port forwarding within OpenShift:

The JBoss management console has been disabled on the JBoss cartridge embedded in OpenShift.


The management console is bound to an internal port (9990). To access the JBoss management console, you can use port forwarding:

> rhc port-forward jbosseap
Checking available ports ... done
Forwarding ports ...

To connect to a service running on OpenShift, use the Local address

Service Local               OpenShift
------- -------------- ---- ---------------
java  =>
java  =>
java  =>
java  =>
java  =>
java  =>

Press CTRL-C to terminate port forwarding

While that is running, use a local browser to hit:

For more details about port forwarding, please refer to: https://www.openshift.com/blogs/getting-started-with-port-forwarding-on-openshift

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.