Lost admin on self hosted server // How to generate a new privilege key

How to get back your Admin permissions on hosted servers

A. If you own a TeamSpeak Community, refer to this post for additional guidance:

B. If you are hosting a Server from an ATHP, you must contact your hosting provider. Politely request them to generate a new privilege key for you.


How to get back your Admin permissions on self hosted servers

The easiest solution is to get another Admin online that can grant you the permissions. If that is not possible, you can use your Server Query to get back access.

:information_source: When using a TS6 Server, you’ll need to use an SSH connection to connect to the server. The Query is also disabled by default so you might need to add parameters or set environment variables when starting the server → Frequently Used Parameters & Environment Variables

If you don’t have your serveradmin password, please have a look here:

Don't have your Server Admin Query password? Look here!

If you are unfamiliar with ServerQuery, refer to this guide:

How to use the Server Query (Telnet)

Connecting to the ServerQuery interface

Telnet Client (TS3 Only)

  1. Open your terminal or command line. You can use the built-in telnet tool on Windows, macOS, or Linux.[1]
    Alternatively, you can use a GUI client like PuTTY (select the “Telnet” connection type).

Logging into the Query Account and creating a token

login serveradmin YOUR_PASSWORD

# The default virtual Server ID is 1, if changed you can use `use port=9987` to identify the server by its voice port
use 1 

# The default Server Admin Group ID is 6, if you want to create it for a different Server Group, use the command `servergrouplist` (check for the output: sgid=6 name=Server\sAdmin [...])
tokenadd tokentype=0 tokenid1=6 tokenid2=0



# You should now receive the following output: 
token=UadpbuJLf6FL6bWVuJ0W9+yml5btScRFJSs9NSuN

SSH Connection (TS3 and TS6 Compatible)

With SSH, you pass your ServerQuery username directly in the connection string. Run the following command to initiate the connection and create a token:

Logging into the Query Account and creating a token

# If not run locally on the Server, change the IP accordingly)
ssh serveradmin@127.1 -p10022

# Now enter your password...

# The default virtual Server ID is 1, if changed you can use `use port=9987` to identify the server by its voice port
use 1 

# The default Server Admin Group ID is 6, if you want to create it for a different Server Group, use the command `servergrouplist` (check for the output: sgid=6 name=Server\sAdmin [...])
tokenadd tokentype=0 tokenid1=6 tokenid2=0



# You should now receive the following output: 
token=UadpbuJLf6FL6bWVuJ0W9+yml5btScRFJSs9NSuN

Using the token inside of TeamSpeak to regain admin permissions:

  • TeamSpeak 6: Right-click the Server → Use Privilege Key, then enter the token.
  • TeamSpeak 3: Go to Permissions → Use Privilege Key, then enter the token.

Your admin permissions should now be restored.


  1. It might be disabled by default, so you may need to enable it before continuing ↩︎

1 Like

Privilege keys are one time use and are invalid once used.
The reason you’re not having permissions is very likely because you’re using a different identity. Unless you also lost all channels on the server in which case you didn’t update the server correctly, but created a new installation.

5 Likes

The VPS server is completely mine and is deployed on Docker. The token was one-time. How can I get a new one to become special again?