Skip to main content

Remote Access Key not seen

Comments

7 comments

  • 24x7server
    Hi, Can you share a screenshot of what you see in the Remote Access Key page on your server?
    0
  • constantine
    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
  • cPanelMichael
    Hello, We deprecated the remote access key feature in cPanel & WHM version 64 in favor of API tokens: Manage API Tokens interface In cPanel & WHM version 64, we added the interface (Home >> Development >> Manage API Tokens) to cPanel DNSONLY. For more information, read our
    0
  • constantine
    Hello, I have a old script that works with remote access key. Is it possible to generate it via ssh command ?
    0
  • cPanelMichael
    I have a old script that works with remote access key. Is it possible to generate it via ssh command ?

    You can still generate a remote access key using the following WHM API 1 function:
    0
  • servicii.internet
    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 600
    chmod 600 /root/.accesshash.token
    0
  • thesheryar
    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.