How do I configure remote admin in glassfish 4.1 server?

Posted November 14, 2015 14.1k views
Linux BasicsGetting Started

Centos 7.1
Glassfish Server 4.1
Java 8
Hi, i installed glassfish server 4.1 in centos 7.1 . The installation was ready but “Secure Admin must be enabled to access the DAS remotely”.
I can´t apply command asadmin change-password-admin, the console shows:

Traceback (most recent call last):
File “/usr/bin/asadmin”, line 260, in <module>
autoscale = boto.connectautoscale()
File “/usr/lib/python2.7/site-packages/boto/”, line 202, in connectautoscale
File “/usr/lib/python2.7/site-packages/boto/ec2/autoscale/”, line 110, in init
File “/usr/lib/python2.7/site-packages/boto/”, line 1057, in init
File “/usr/lib/python2.7/site-packages/boto/”, line 568, in init
host, config, self.provider, self.requiredauthcapability())
File “/usr/lib/python2.7/site-packages/boto/”, line 882, in get
‘Check your credentials’ % (len(names), str(names)))
boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler’] Check your credentials

any Help?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


You’ll need to run

asadmin --host [host] --port [port] enable-secure-admin

[host] = Droplet’s Public IP - or - Server Hostname (i.e. name.domain.ext).

[port] = The Port you wish to use when accessing.

Once executed, you’ll need to restart Glassfish Server for the changes to take effect.