If you edit the $CASSANDRA_HOME/conf/cassandra-env.sh script, you should be able to set up ssl for the JMX connection. That should allow you to do a direct connection from a locally running JConsole to the JMX port on the public IP of your EC2 instance.
I want to use JConsole to look at the Cassandra's MBean's attributes (like Memtable stats).
But since my Cassandra nodes are running on Amazon EC2 instances, I have to use an ssh login with a ppk authentication file (when connecting via Putty, anyway).
It looks like two popular approaches to establishing a JConsole connection to an EC2 node are:
- VNC (can't use b/c my linux nodes don't have a GUI)
- run JConsole on the remote box and export its display locally via X (would bet too slow b/c of latency between Amazon datacenter and me)
What techniques are others using to connect to EC2 nodes with JConsole?