For a Java client to perform a JNDI lookup of JMS resources deployed on the administration server, an SSH tunnel must be established between the client and the administration server that has a public IP address.
Note:
An SSH tunnel cannot be established between a client and a host that does not have a public IP address. This prevents a Java client from performing a JNDI lookup of JMS resources deployed on the servers.ssh -v -i opc_rsa -L 7001:AdminHostIP:7001 opc@AdminHostIP -N
where AdminHostIP
is the IP address on the administration server.
ssh -v -i opc_rsa -L 8001:MS1IP:8001 opc@MS1HOSTNAME -N
where MS1IP
is the IP address on the managed server and MS1HOSTNAME
is the hostname of the managed server.
See Creating an SSH Tunnel to a Port in the Virtual Machine.