I'm working with a JBoss 5.1.0 GA with jmx configured so remote connections with JConsole can be made. The thing is that, when I configure the options required to use password and access files like in  I try to connect again with JConsole to the remote process. Then the JConsole connects without a problem and without asking me for a user and password. My JAVA_OPTS related with jmx are:
JBoss is realizing about the opts because if one of the files does not exist (jmxremote.password or jmxremote.acces) then an error occurs. The same happens when the password file has the wrong permissions (readonly), but despite of this JConsole is connecting without any authentication.
I have read that if the connection is local user and password aren´t needed but my Jboss is running in a different machine from the one I try to connect with the JConsole.