Remote Access Key not seen
Hello,
I installed a new cpanel and it's trial.
remote access key isn't exist in this cpanel (Home "Clusters "Remote Access Key ) . I would like to create a key.
Please advise.
-
Hi, Can you share a screenshot of what you see in the Remote Access Key page on your server? 0 -
Hello, One of our server has remote access key. please see this picture => Another our server ( our new server ) has no remote access option and I need create an access key ==> 0 -
Hello, I have a old script that works with remote access key. Is it possible to generate it via ssh command ? 0 -
Hello, I have a old script that works with remote access key. Is it possible to generate it via ssh command ?
I found a way to replace remote access key(access hash), using Manage API Tokens . First generate a token, with complete access to the system and save the token in a file.whmapi1 api_token_create token_name=cpanel_token acl-1=all|grep token |awk -F'token: ' '{print $2}' >/root/.accesshash.token
Then use the token to authenticate. Bellow is an example with curl, that change the exim retention days from tweak settings.curl -k -H "Authorization: WHM root:`/bin/cat /root/.accesshash.token`" "https://127.0.0.1:2087//xml-api/set_tweaksetting?api.version=1&key=exim_retention_days&value=30"
Don't forget to change the rights for /root/.accesshash.token to 600chmod 600 /root/.accesshash.token0 -
I'm still unable to get that accesshash You can still generate a remote access key using the following WHM API 1 function: is not working. It gives this error [root@server1 ~]# --- metadata: command: get_remote_access_hash reason: get_remote_access_hash requires that "host" is defined. result: 0 version: 1
0
Please sign in to leave a comment.
Comments
7 comments