Java Management eXtensions technology provides a simple and standard way of managing and monitoring resources related to an instance of a Java Virtual Machine. It is disabled by default and when enabled it generally does not require authentication. This post is how to enable JMX and enforce authentication.

Follow instructions from this link to deploy these three files;

jmxremote access, jmvremote password and nodetool password with permission 400 for cassandra

https://docs.datastax.com/en/cassandra/2.1/cassandra/security/secureJmxAuthentication.html

confirm that the authentication is working by running the nodetool status check which should generate this message

[dev01 ~]$ /PATH/cassandra_instance_0/bin/nodetool status error: Authentication failed! Credentials required -- StackTrace -- java.lang.SecurityException: Authentication failed! Credentials required at com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure(JMXPluggableAuthenticator.java:211) at com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticate(JMXPluggableAuthenticator.java:163) at sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.authenticate(ConnectorBootstrap.java:227)

error: Authentication failed! Credentials required

OR

you can also use the instructions on this link to verify using jconsole (GUI)

https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2017/february/compromising-apache-tomcat-via-jmx-access/

when done right, you will get a pop up window with the error;

Connection Failed: Retry? The connection to 192.168.x.x did not succeed ...